MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / checkint

Function checkint

lua/lauxlib.c:328–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326#if defined(LUA_COMPAT_GETN)
327
328static int checkint (lua_State *L, int topop) {
329 int n = (lua_type(L, -1) == LUA_TNUMBER) ? lua_tointeger(L, -1) : -1;
330 lua_pop(L, topop);
331 return n;
332}
333
334
335static 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