diff options
Diffstat (limited to 'src/plugin-luatask.cc')
-rw-r--r-- | src/plugin-luatask.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/plugin-luatask.cc b/src/plugin-luatask.cc index b97e273..dce08f0 100644 --- a/src/plugin-luatask.cc +++ b/src/plugin-luatask.cc @@ -1,9 +1,17 @@ #include <LuaTask.h> +static void _init_plugin(Lua * L) { + LuaTaskMan::pushstatics(L); +} + extern "C" { -void init_plugin(Lua * L) { - LuaTaskMan::pushstatics(L); +__attribute__ ((weak)) void init_plugin(Lua * L) { + _init_plugin(L); +} + +void luatask_init(Lua * L) { + _init_plugin(L); } } |