diff options
Diffstat (limited to 'src/plugin-luahandle.cc')
-rw-r--r-- | src/plugin-luahandle.cc | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/plugin-luahandle.cc b/src/plugin-luahandle.cc index d2002af..a1cf4ea 100644 --- a/src/plugin-luahandle.cc +++ b/src/plugin-luahandle.cc @@ -1,12 +1,20 @@ #include <LuaHandle.h> -extern "C" { - -void init_plugin(Lua * L) { +static void _init_plugin(Lua * L) { LuaInput::pushconstruct(L); LuaOutput::pushconstruct(L); LuaBuffer::pushconstruct(L); LuaHandle::pushconstruct(L); } +extern "C" { + +__attribute__ ((weak)) void init_plugin(Lua * L) { + _init_plugin(L); +} + +void luahandle_init(Lua * L) { + _init_plugin(L); +} + } |