Ruby: dmydln.c Source File

Ruby 3.3.4p94 (2024-07-09 revision be1089c8ec5ba40e09b1553e36b3174bf4014d9d)

dmydln.c
1#include "ruby/ruby.h"
2
3NORETURN(void *dln_load(const char *));
4void*
5dln_load(const char *file)
6{
7 rb_loaderror("this executable file can't load extension libraries");
8
9 UNREACHABLE_RETURN(NULL);
10}
11
12NORETURN(void *dln_symbol(void*,const char*));
13void*
14dln_symbol(void *handle, const char *symbol)
15{
16 rb_loaderror("this executable file can't load extension libraries");
17
18 UNREACHABLE_RETURN(NULL);
19}
UNREACHABLE_RETURN
#define UNREACHABLE_RETURN
Old name of RBIMPL_UNREACHABLE_RETURN.
Definition assume.h:29
rb_loaderror
void rb_loaderror(const char *fmt,...)
Raises an instance of rb_eLoadError.
Definition error.c:3474
ruby.h