ruby/dmyext.c
Yusuke Endoh b1431ce427 Add comments to dmydln.c, dmyenc.c, and dmyext.c
They are used conditionally in miniruby, dynamically-linked ruby, and
statically-linked ruby (--with-static-linked-ext).
I asked @nobu about the conditions. and I leave comments because the
conditions are insanely difficult.
2024-02-21 17:57:48 +09:00

10 lines
490 B
C

// This file is used by dynamically-linked ruby and miniruby.
// miniruby uses this Init_ext, which does nothing. It does not support require'ing extension libraries.
// Dynamically-linked ruby uses this Init_ext, which does nothing. It loads extension libraries by dlopen, etc.
// Statically-linked ruby does not use this Init_ext. Instead, "ext/extinit.c" (which is a generated file) defines Init_ext, which activates the (statically-linked) extension libraries.
void
Init_ext(void)
{
}