Software /
code /
prosody
Changeset
727:78c9542de94e
pposix: Add _NAME and _VERSION
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 16 Jan 2009 04:57:36 +0000 |
parents | 726:68a776711ba9 |
children | 728:fa45dfb27ee5 |
files | util-src/pposix.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/util-src/pposix.c Fri Jan 16 04:57:23 2009 +0000 +++ b/util-src/pposix.c Fri Jan 16 04:57:36 2009 +0000 @@ -21,6 +21,8 @@ POSIX support functions for Lua */ +#define MODULE_VERSION "0.3.0" + #include <stdlib.h> #include <unistd.h> #include <libgen.h> @@ -230,5 +232,11 @@ 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; };