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-luahttp.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/plugin-luahttp.cc') diff --git a/src/plugin-luahttp.cc b/src/plugin-luahttp.cc index 819a2f3..ae7ee34 100644 --- a/src/plugin-luahttp.cc +++ b/src/plugin-luahttp.cc @@ -1,9 +1,17 @@ #include +static void _init_plugin(Lua * L) { + LuaHttpResponse::pushstatics(L); +} + extern "C" { -void init_plugin(Lua * L) { - LuaHttpResponse::pushstatics(L); +__attribute__ ((weak)) void init_plugin(Lua * L) { + _init_plugin(L); +} + +void luahttp_init(Lua * L) { + _init_plugin(L); } } -- cgit v1.2.3