From aba5b6531904ea6707d54263b994d18c65d440c4 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Wed, 30 Apr 2014 10:29:08 -0700 Subject: [PATCH] feat(util/lua): add macro pushnil Signed-off-by: Leonardo de Moura --- src/util/lua.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/lua.h b/src/util/lua.h index e4cf92289..32d950a73 100644 --- a/src/util/lua.h +++ b/src/util/lua.h @@ -136,6 +136,7 @@ inline int pushboolean(lua_State * L, bool b) { lua_pushboolean(L, b); return 1; inline int pushstring(lua_State * L, char const * s) { lua_pushstring(L, s); return 1; } inline int pushinteger(lua_State * L, lua_Integer v) { lua_pushinteger(L, v); return 1; } inline int pushnumber(lua_State * L, lua_Number v) { lua_pushnumber(L, v); return 1; } +inline int pushnil(lua_State * L) { lua_pushnil(L); return 1; } // ======================================= }