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

Function luaL_checkinteger

third-party/lua-5.2.4/src/lauxlib.c:389–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387
388
389LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int narg) {
390 int isnum;
391 lua_Integer d = lua_tointegerx(L, narg, &isnum);
392 if (!isnum)
393 tag_error(L, narg, LUA_TNUMBER);
394 return d;
395}
396
397
398LUALIB_API lua_Unsigned luaL_checkunsigned (lua_State *L, int narg) {

Callers 1

str_subFunction · 0.70

Calls 2

lua_tointegerxFunction · 0.70
tag_errorFunction · 0.70

Tested by

no test coverage detected