MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaL_checkinteger

Function luaL_checkinteger

third-party/lua-5.5.0/src/lauxlib.c:448–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446
447
448LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int arg) {
449 int isnum;
450 lua_Integer d = lua_tointegerx(L, arg, &isnum);
451 if (l_unlikely(!isnum)) {
452 interror(L, arg);
453 }
454 return d;
455}
456
457
458LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int arg,

Callers 15

luaB_tonumberFunction · 0.70
ipairsauxFunction · 0.70
luaB_selectFunction · 0.70
math_ultFunction · 0.70
math_ldexpFunction · 0.70
math_randomFunction · 0.70
math_randomseedFunction · 0.70
str_subFunction · 0.70
str_repFunction · 0.70
str_charFunction · 0.70
str_formatFunction · 0.70
str_packFunction · 0.70

Calls 2

lua_tointegerxFunction · 0.70
interrorFunction · 0.70

Tested by

no test coverage detected