diff options
Diffstat (limited to 'dmydln.c')
| -rw-r--r-- | dmydln.c | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -1,3 +1,6 @@ +// This file is used by miniruby, not ruby. +// ruby uses dln.c. + #include "ruby/ruby.h" NORETURN(void *dln_load(const char *)); @@ -8,3 +11,21 @@ dln_load(const char *file) UNREACHABLE_RETURN(NULL); } + +NORETURN(void *dln_load_feature(const char*,const char*)); +void* +dln_load_feature(const char *file, const char *fname) +{ + 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); +} |
