MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / lua_Integer luaL_checkinteger

Function lua_Integer luaL_checkinteger

other_src/lua/src/lauxlib.cpp:214–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212
213
214LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int narg) {
215 lua_Integer d = lua_tointeger(L, narg);
216 if (d == 0 && !lua_isnumber(L, narg)) /* avoid extra test when d is not 0 */
217 tag_error(L, narg, LUA_TNUMBER);
218 return d;
219}
220
221
222LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int narg,

Callers

nothing calls this directly

Calls 3

lua_tointegerFunction · 0.85
lua_isnumberFunction · 0.70
tag_errorFunction · 0.70

Tested by

no test coverage detected