]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lua/lua.h
trojanscan and lua now use nsmalloc.
[irc/quakenet/newserv.git] / lua / lua.h
index c4c0e97ff96425a9bedc3a8c0cc0639de7f84874..957040c475f86edcd4d970de65ff373828a611ba 100644 (file)
--- a/lua/lua.h
+++ b/lua/lua.h
 #include <unistd.h>
 
 #include "../lib/sstring.h"
+#include "../core/nsmalloc.h"
 
 #include "lualocal.h"
 #include "luasocket.h"
 
+#define luamalloc(x) nsmalloc(POOL_LUA, x)
+#define luarealloc(x, y) nsrealloc(POOL_LUA, x, y)
+#define luafree(x) nsfree(POOL_LUA, x)
+
 /*** defines ************************************/
 
-#define LUA_BOTVERSION "1.83"
-#define LUA_CHANFIXBOT "Z"
+#define LUA_BOTVERSION "1.86"
+#define LUA_CHANFIXBOT "D"
 #define LUA_OPERCHAN "#twilightzone"
 
 #ifndef LUA_PUKECHAN
@@ -81,6 +86,9 @@ int lua_lineok(const char *data);
 #define lua_tolong(l, n) (long)lua_tonumber(l, n)
 #define lua_islong(l, n) lua_isnumber(l, n)
 #define lua_pushlong(l, n) lua_pushnumber(l, n)
+#define lua_pushnumeric(l, n) lua_pushlong(l, n)
+#define lua_tonumeric(l, n) lua_tolong(l, n)
+#define lua_isnumeric(l, n) lua_islong(l, n)
 
 extern struct rusage r_usages;
 extern struct rusage r_usagee;