util-lua: add (wrapper) function to push integer to lua scripts

pull/2284/head
Mats Klepsland 10 years ago committed by Victor Julien
parent ee24949065
commit 67ea821521

@ -271,4 +271,10 @@ int LuaPushStringBuffer(lua_State *luastate, const uint8_t *input, size_t input_
return 1;
}
int LuaPushInteger(lua_State *luastate, lua_Integer n)
{
lua_pushinteger(luastate, n);
return 1;
}
#endif /* HAVE_LUA */

@ -80,6 +80,8 @@ void LuaPrintStack(lua_State *state);
int LuaPushStringBuffer(lua_State *luastate, const uint8_t *input, size_t input_len);
int LuaPushInteger(lua_State *luastate, lua_Integer n);
#endif /* HAVE_LUA */
#endif /* __UTIL_LUA_H__ */

Loading…
Cancel
Save