From 1ab440d0c9b63ccb8f422ab8c9a436041d58c55e Mon Sep 17 00:00:00 2001 From: Mauro Iazzi Date: Mon, 28 Sep 2009 16:25:46 +0200 Subject: [PATCH] defined a macro for lua_pcall --- common/lqt_common.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/lqt_common.hpp b/common/lqt_common.hpp index 1d23550..4dca813 100644 --- a/common/lqt_common.hpp +++ b/common/lqt_common.hpp @@ -58,6 +58,9 @@ extern "C" { // macro to ge positive indexes #define LQT_TOPOSITIVE(L, i) (((i)<0)?(lua_gettop(L)+1+(i)):(i)) +// use standard pcall by default +#define lqtL_pcall(L, n, r, e) lua_pcall(L, n, r, e) + typedef int (*lqt_PCallPtr) (lua_State *L, int nargs, int nresults, int errfunc); void lqtL_register(lua_State *, const void *); -- 2.11.4.GIT