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

Function lua_tointegerx

third-party/lua-5.3.5/src/lapi.c:356–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354
355
356LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) {
357 lua_Integer res;
358 const TValue *o = index2addr(L, idx);
359 int isnum = tointeger(o, &res);
360 if (!isnum)
361 res = 0; /* call to 'tointeger' may change 'n' even if it fails */
362 if (pisnum) *pisnum = isnum;
363 return res;
364}
365
366
367LUA_API int lua_toboolean (lua_State *L, int idx) {

Callers 4

math_tointFunction · 0.70
luaL_checkintegerFunction · 0.70
lua_IntegerFunction · 0.70
getfieldFunction · 0.70

Calls 1

index2addrFunction · 0.70

Tested by

no test coverage detected