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.
288 289 290 291 292 293 294 295 296 297 298 299 |
# File 'ext/fiddle/handle.c', line 288 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); } |