summaryrefslogtreecommitdiff
path: root/src/plugin-luaconfigfiles.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin-luaconfigfiles.cc')
-rw-r--r--src/plugin-luaconfigfiles.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/plugin-luaconfigfiles.cc b/src/plugin-luaconfigfiles.cc
index a174f6a..9df08ab 100644
--- a/src/plugin-luaconfigfiles.cc
+++ b/src/plugin-luaconfigfiles.cc
@@ -1,9 +1,17 @@
#include <LuaConfigFile.h>
+static void _init_plugin(Lua * L) {
+ LuaConfigFile::pushstatics(L);
+}
+
extern "C" {
-void init_plugin(Lua * L) {
- LuaConfigFile::pushstatics(L);
+__attribute__ ((weak)) void init_plugin(Lua * L) {
+ _init_plugin(L);
+}
+
+void luaconfigfiles_init(Lua * L) {
+ _init_plugin(L);
}
}