MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / checkint

Function checkint

deps/lua/src/lauxlib.c:280–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278#if defined(LUA_COMPAT_GETN)
279
280static int checkint (lua_State *L, int topop) {
281 int n = (lua_type(L, -1) == LUA_TNUMBER) ? lua_tointeger(L, -1) : -1;
282 lua_pop(L, topop);
283 return n;
284}
285
286
287static void getsizes (lua_State *L) {

Callers 2

luaL_setnFunction · 0.85
luaL_getnFunction · 0.85

Calls 2

lua_typeFunction · 0.85
lua_tointegerFunction · 0.85

Tested by

no test coverage detected