MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaL_checkinteger

Function luaL_checkinteger

freebsd/contrib/openzfs/module/lua/lauxlib.c:349–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347
348
349LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int narg) {
350 int isnum;
351 lua_Integer d = lua_tointegerx(L, narg, &isnum);
352 if (!isnum)
353 tag_error(L, narg, LUA_TNUMBER);
354 return d;
355}
356
357
358LUALIB_API lua_Unsigned luaL_checkunsigned (lua_State *L, int narg) {

Callers 1

str_subFunction · 0.70

Calls 2

lua_tointegerxFunction · 0.85
tag_errorFunction · 0.70

Tested by

no test coverage detected