summaryrefslogtreecommitdiff
path: root/src/plugin-luagl.cc
diff options
context:
space:
mode:
authorpixel <pixel>2008-08-04 09:38:55 +0000
committerpixel <pixel>2008-08-04 09:38:55 +0000
commit6106ce4290152d0bf588bc97c0ef625f0a3006db (patch)
tree61ff65d6e79a94cf32ddaec65a8a8f20f2ffab7a /src/plugin-luagl.cc
parent1ee5adc42dbf6dafd1a16933b4cd1e3b8667f265 (diff)
Adding built-in debugging system.
Diffstat (limited to 'src/plugin-luagl.cc')
-rw-r--r--src/plugin-luagl.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/plugin-luagl.cc b/src/plugin-luagl.cc
index 2f0b55c..34bdc2d 100644
--- a/src/plugin-luagl.cc
+++ b/src/plugin-luagl.cc
@@ -1,10 +1,18 @@
#include <LuaGL.h>
-extern "C" {
-
-void init_plugin(Lua * L) {
+static void _init_plugin(Lua * L) {
luaopen_opengl(L);
L->pop();
}
+
+extern "C" {
+
+__attribute__ ((weak)) void init_plugin(Lua * L) {
+ _init_plugin(L);
+}
+
+void luagl_init(Lua * L) {
+ _init_plugin(L);
+}
}