From 42e43b044ffc49e3128ae59e75ce5ffd84c371be Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 1 Jul 2011 10:02:42 +0000 Subject: Fixed bug in field check/creation with depth greater than 1. --- server/src/luautil.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'server/src/luautil.h') diff --git a/server/src/luautil.h b/server/src/luautil.h index ebbba45..0d9d445 100644 --- a/server/src/luautil.h +++ b/server/src/luautil.h @@ -31,6 +31,7 @@ #include #include +#include namespace Pracro { @@ -76,6 +77,18 @@ namespace Pracro { // int checkParameters(lua_State *L, types_t types[]); int checkParameters(lua_State *L, ...); + bool hasField(lua_State *L, int i, std::string name); + + bool testField(lua_State *L, std::vector groups, + std::string field); + + bool getField(lua_State *L, std::vector groups, + std::string field); + + bool createField(lua_State *L, std::vector groups, + std::string field); + + void stack(lua_State* l, const char *fmt, ...); }; #endif/*__PRACRO_LUAUTIL_H__*/ -- cgit v1.2.3