rbdasm/dasm.c
//
// Returns the format currently being used when displaying string versions of
// instructions.
//
Returns the format currently being used when displaying string versions of
instructions.
Returns the format currently being used when displaying string versions of instructions .
static VALUE dasm_format(VALUE self)
{
	PDASM_OBJECT obj;
	VALUE        rv;
	rb_dasm_cast(self, obj);
	switch (obj->format)
	{
		case FORMAT_INTEL: rv = rb_str_new2("intel"); break;
		case FORMAT_ATT:   rv = rb_str_new2("att"); break;
		default: rv = Qnil; break;
	}
	return rv;
}
static VALUE dasm_format ( VALUE self ) { PDASM_OBJECT obj ; VALUE rv ; rb_dasm_cast ( self , obj ) ; switch ( obj -> format ) { case FORMAT_INTEL : rv = rb_str_new2 ( " " ) ; break ; case FORMAT_ATT : rv = rb_str_new2 ( " " ) ; break ; default : rv = Qnil ; break ; } return rv ; }
Returns the format currently being used when displaying string versions of
instructions.
Returns the format currently being used when displaying string versions of instructions .