Method: Fiddle::Handle#sym
- Defined in:
- ext/fiddle/handle.c
#sym(sym) ⇒ Object
call-seq: sym(name)
Get the address as an Integer for the function named name.
274 275 276 277 278 279 280 281 282 283 284 285 |
# File 'ext/fiddle/handle.c', line 274
static VALUE
rb_fiddle_handle_sym(VALUE self, VALUE sym)
{
struct dl_handle *fiddle_handle;
TypedData_Get_Struct(self, struct dl_handle, &fiddle_handle_data_type, fiddle_handle);
if( ! fiddle_handle->open ){
rb_raise(rb_eFiddleDLError, "closed handle");
}
return fiddle_handle_sym(fiddle_handle->ptr, sym);
}
|