node/lib/metasm/samples/dynamic_ruby.rb
def rb_const(constname, owner = resolve_const_owner(constname))
		raise Fail, "no dynamic constant resolution #{constname}" if not owner
		cst = owner.const_get(constname)
		C::CExpression[[RubyHack.rb_obj_to_value(cst)], value]
	end
# returns a static pointer to the constant
returns a static pointer to the constant
returns a static pointer to the constant
def rb_const(constname, owner = resolve_const_owner(constname))
		raise Fail, "no dynamic constant resolution #{constname}" if not owner
		cst = owner.const_get(constname)
		C::CExpression[[RubyHack.rb_obj_to_value(cst)], value]
	end
def rb_const ( constname , owner = resolve_const_owner ( constname ) ) raise Fail , "no dynamic constant resolution #{constname}" if not owner cst = owner . const_get ( constname ) C :: CExpression [ [ RubyHack . rb_obj_to_value ( cst ) ] , value ] end
returns a static pointer to the constant
returns a static pointer to the constant
constname
owner
resolve_const_owner