From 43c5e285582173e2a5791501694953dcbbd4cae0 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 16 Jan 2009 04:57:36 +0000 Subject: pposix: Add _NAME and _VERSION --- util-src/pposix.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/util-src/pposix.c b/util-src/pposix.c index 6e7d250c..2908a5bf 100644 --- a/util-src/pposix.c +++ b/util-src/pposix.c @@ -21,6 +21,8 @@ POSIX support functions for Lua */ +#define MODULE_VERSION "0.3.0" + #include #include #include @@ -230,5 +232,11 @@ int luaopen_util_pposix(lua_State *L) lua_pushcfunction(L, lc_getpid); lua_setfield(L, -2, "getpid"); + lua_pushliteral(L, "pposix"); + lua_setfield(L, -2, "_NAME"); + + lua_pushliteral(L, MODULE_VERSION); + lua_setfield(L, -2, "_VERSION"); + return 1; }; -- cgit v1.2.3