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
6
NORETURN(
void
*dln_load(
const
char
*));
7
void
*
8
dln_load(
const
char
*file)
9
{
10
rb_loaderror
(
"this executable file can't load extension libraries"
);
11
12
UNREACHABLE_RETURN
(NULL);
13
}
14
15
NORETURN(
void
*dln_symbol(
void
*,
const
char
*));
16
void
*
17
dln_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
Generated by
1.9.8