Module: FFI_Yajl::Ext::Dlopen

Included in:
FFI_Yajl
Defined in:
ext/ffi_yajl/ext/dlopen/dlopen.c

Instance Method Summary collapse

Instance Method Details

#dlopen(file) ⇒ Object



28
29
30
31
32
33
# File 'ext/ffi_yajl/ext/dlopen/dlopen.c', line 28

static VALUE mDlopen_dlopen(VALUE self, VALUE file) {
  if (dlopen(RSTRING_PTR(file), RTLD_NOW|RTLD_GLOBAL) == NULL) {
    rb_raise(rb_eArgError, "%s", dlerror());
  }
  return Qnil;
}