Ruby
3.5.0dev (2025-04-11 revision 0a35c5b4d9add69251590e3902a5d861df49e142)
dmydln.c (0a35c5b4d9add69251590e3902a5d861df49e142)
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:3812
ruby.h
Generated by
1.9.8