Ruby
3.3.5p100 (2024-09-03 revision ef084cc8f4958c1b6e4ead99136631bef6d8ddba)
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