diff options
Diffstat (limited to 'src/plugin-lualibs.cc')
-rw-r--r-- | src/plugin-lualibs.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/plugin-lualibs.cc b/src/plugin-lualibs.cc index e364d9b..8233f7d 100644 --- a/src/plugin-lualibs.cc +++ b/src/plugin-lualibs.cc @@ -1,9 +1,17 @@ #include <loadlualibs.h> +static void _init_plugin(Lua * L) { + LoadLuaLibs(L); +} + extern "C" { -void init_plugin(Lua * L) { - LoadLuaLibs(L); +__attribute__ ((weak)) void init_plugin(Lua * L) { + _init_plugin(L); +} + +void lualibs_init(Lua * L) { + _init_plugin(L); } } |