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