diff options
author | pixel <pixel> | 2008-08-04 09:38:55 +0000 |
---|---|---|
committer | pixel <pixel> | 2008-08-04 09:38:55 +0000 |
commit | 6106ce4290152d0bf588bc97c0ef625f0a3006db (patch) | |
tree | 61ff65d6e79a94cf32ddaec65a8a8f20f2ffab7a /src/plugin-luaftgl.cc | |
parent | 1ee5adc42dbf6dafd1a16933b4cd1e3b8667f265 (diff) |
Adding built-in debugging system.
Diffstat (limited to 'src/plugin-luaftgl.cc')
-rw-r--r-- | src/plugin-luaftgl.cc | 12 |
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); } } |