Ruby: dmydln.c Source File

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

dmydln.c
1#include "ruby/ruby.h"
2
3NORETURN(void *dln_load(const char *));
4void*
5dln_load(const char *file)
6{
7 rb_loaderror("this executable file can't load extension libraries");
8
9 UNREACHABLE_RETURN(NULL);
10}
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:3169
ruby.h