Ruby: dmydln.c Source File

Ruby 3.4.9p82 (2026-03-11 revision 76cca827ab52ab1d346a728f068d5b8da3e2952b)

dmydln.c
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
12 UNREACHABLE_RETURN(NULL);
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
21 UNREACHABLE_RETURN(NULL);
22}
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:3784
ruby.h