mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00

The symbol resolved by dln_symbol will eventually be passed to extensions. The error handling of dln_sym is also separated into dln_sym_func because the new call resolving symbols will not raise LoadError.
19 lines
412 B
C
19 lines
412 B
C
#include "ruby/ruby.h"
|
|
|
|
NORETURN(void *dln_load(const char *));
|
|
void*
|
|
dln_load(const char *file)
|
|
{
|
|
rb_loaderror("this executable file can't load extension libraries");
|
|
|
|
UNREACHABLE_RETURN(NULL);
|
|
}
|
|
|
|
NORETURN(void *dln_symbol(void*,const char*));
|
|
void*
|
|
dln_symbol(void *handle, const char *symbol)
|
|
{
|
|
rb_loaderror("this executable file can't load extension libraries");
|
|
|
|
UNREACHABLE_RETURN(NULL);
|
|
}
|