Ruby 3.5.0dev (2025-01-10 revision 5fab31b15e32622c4b71d1d347a41937e9f9c212)
dmydln.c (5fab31b15e32622c4b71d1d347a41937e9f9c212)
1// This file is used by miniruby, not ruby.
2// ruby uses dln.c.
3
4#include "ruby/ruby.h"
5
6NORETURN(void *dln_load(const char *));
7void*
8dln_load(const char *file)
9{
10 rb_loaderror("this executable file can't load extension libraries");
11
13}
14
15NORETURN(void *dln_symbol(void*,const char*));
16void*
17dln_symbol(void *handle, const char *symbol)
18{
19 rb_loaderror("this executable file can't load extension libraries");
20
22}
#define UNREACHABLE_RETURN
Old name of RBIMPL_UNREACHABLE_RETURN.
Definition assume.h:29
void rb_loaderror(const char *fmt,...)
Raises an instance of rb_eLoadError.
Definition error.c:3784