From 86d7be23e9dcf154d19f4e2d82833c921f97c188 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Tue, 9 Oct 2007 16:24:28 -0500 Subject: add _VERSION to the module --- src/signal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/signal.c b/src/signal.c index 232a4b7..c833315 100644 --- a/src/signal.c +++ b/src/signal.c @@ -7,6 +7,7 @@ #include #define REG_TABLE "luasignal" +#define VERSION "LuaSignal 0.1" static lua_State* gL = NULL; static lua_Hook old_hook = NULL; @@ -322,6 +323,8 @@ int luaopen_signal(lua_State* L) lua_setfield(L, LUA_REGISTRYINDEX, REG_TABLE); luaL_register(L, "signal", reg); + lua_pushstring(L, VERSION); + lua_setfield(L, -2, "_VERSION"); return 1; } -- cgit v1.2.3