Method: Fiddle::Closure#to_i

Defined in:
ext/fiddle/closure.c

#to_iObject

Returns the memory address for this closure



279
280
281
282
283
284
285
286
287
288
289
290
# File 'ext/fiddle/closure.c', line 279

static VALUE
to_i(VALUE self)
{
    fiddle_closure * cl;
    void *code;

    TypedData_Get_Struct(self, fiddle_closure, &closure_data_type, cl);

    code = cl->code;

    return PTR2NUM(code);
}