From 6106ce4290152d0bf588bc97c0ef625f0a3006db Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 4 Aug 2008 09:38:55 +0000 Subject: Adding built-in debugging system. --- src/plugin-luagl.cc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/plugin-luagl.cc') 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 -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); +} } -- cgit v1.2.3