diff options
Diffstat (limited to 'src/plugin-luaxml.cc')
-rw-r--r-- | src/plugin-luaxml.cc | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/plugin-luaxml.cc b/src/plugin-luaxml.cc index 2cec871..0e3ad06 100644 --- a/src/plugin-luaxml.cc +++ b/src/plugin-luaxml.cc @@ -1,10 +1,18 @@ #include <LuaXML.h> -extern "C" { - -void init_plugin(Lua * L) { +static void _init_plugin(Lua * L) { luaopen_xml(L); L->pop(); } +extern "C" { + +__attribute__ ((weak)) void init_plugin(Lua * L) { + _init_plugin(L); +} + +void luaxml_init(Lua * L) { + _init_plugin(L); +} + } |