Ruby
3.3.6p108 (2024-11-05 revision 75015d4c1f6965b5e85e96fb309f1f2129f933c0)
dmydln.c
1
#include "
ruby/ruby.h
"
2
3
NORETURN(
void
*dln_load(
const
char
*));
4
void
*
5
dln_load(
const
char
*file)
6
{
7
rb_loaderror
(
"this executable file can't load extension libraries"
);
8
9
UNREACHABLE_RETURN
(NULL);
10
}
11
12
NORETURN(
void
*dln_symbol(
void
*,
const
char
*));
13
void
*
14
dln_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
Generated by
1.12.0