1 // This file is used by miniruby, not ruby.
12 NORETURN(void *dln_load(const char *));
14 dln_load(const char *file
)
16 rb_loaderror("this executable file can't load extension libraries");
18 UNREACHABLE_RETURN(NULL
);
21 NORETURN(void *dln_symbol(void*,const char*));
23 dln_symbol(void *handle
, const char *symbol
)
25 rb_loaderror("this executable file can't load extension libraries");
27 UNREACHABLE_RETURN(NULL
);
31 dln_open(const char *library
, char *error
, size_t size
)
33 static const char *error_str
= "this executable file can't load extension libraries";
34 strlcpy(error
, error_str
, size
);