MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / lua_Integer luaL_checkinteger

Function lua_Integer luaL_checkinteger

src/lauxlib.cpp:481–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479
480
481LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int arg) {
482 int isnum;
483 lua_Integer d = lua_tointegerx(L, arg, &isnum);
484 if (l_unlikely(!isnum)) {
485 interror(L, arg);
486 }
487 return d;
488}
489
490
491LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int arg,

Callers

nothing calls this directly

Calls 1

interrorFunction · 0.85

Tested by

no test coverage detected