Ruby 4.1.0dev (2026-04-28 revision 8d929853d88b5ca4ff72b78b5b539afc1b8b7d71)
dmyext.c (8d929853d88b5ca4ff72b78b5b539afc1b8b7d71)
1// This file is used by dynamically-linked ruby, which has no
2// statically-linked extension libraries.
3//
4// - miniruby does not use this Init_ext. Instead, "miniinit.c"
5// provides Init_enc, which does nothing too. It does not support
6// require'ing extension libraries.
7//
8// - Dynamically-linked ruby uses this Init_ext, which does
9// nothing. It loads extension libraries by dlopen, etc.
10//
11// - Statically-linked ruby does not use this Init_ext. Instead,
12// "ext/extinit.c" (which is a generated file) defines Init_ext,
13// which activates the (statically-linked) extension libraries.
14
15void
16Init_ext(void)
17{
18}