rbdasm/dasm.c
//
// Returns the current disassembler mode that is being operated under.
//
Returns the current disassembler mode that is being operated under.
Returns the current disassembler mode that is being operated under .
static VALUE dasm_mode(VALUE self)
{
	PDASM_OBJECT obj;
	VALUE        rv;
	rb_dasm_cast(self, obj);
	switch (obj->mode)
	{
		case MODE_32: rv = INT2FIX(32); break;
		case MODE_16: rv = INT2FIX(16); break;
		default: rv = Qnil; break;
	}
	return rv;
}
static VALUE dasm_mode ( VALUE self ) { PDASM_OBJECT obj ; VALUE rv ; rb_dasm_cast ( self , obj ) ; switch ( obj -> mode ) { case MODE_32 : rv = INT2FIX ( 32 ) ; break ; case MODE_16 : rv = INT2FIX ( 16 ) ; break ; default : rv = Qnil ; break ; } return rv ; }
Returns the current disassembler mode that is being operated under.
Returns the current disassembler mode that is being operated under .