feat(util/lua): add macro pushnil

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-04-30 10:29:08 -07:00
parent 3e222e2f22
commit aba5b65319

View file

@ -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; }
// =======================================
}