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

Function checkint

other_src/lua/src/lauxlib.cpp:305–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303#if defined(LUA_COMPAT_GETN)
304
305static int checkint (lua_State *L, int topop) {
306 int n = (lua_type(L, -1) == LUA_TNUMBER) ? lua_tointeger(L, -1) : -1;
307 lua_pop(L, topop);
308 return n;
309}
310
311
312static void getsizes (lua_State *L) {

Callers 2

luaL_setnFunction · 0.70
luaL_getnFunction · 0.70

Calls 2

lua_tointegerFunction · 0.85
lua_typeFunction · 0.70

Tested by

no test coverage detected