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

Function lua_tointegerx

third-party/lua-5.5.0/src/lapi.c:399–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397
398
399LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) {
400 lua_Integer res = 0;
401 const TValue *o = index2value(L, idx);
402 int isnum = tointeger(o, &res);
403 if (pisnum)
404 *pisnum = isnum;
405 return res;
406}
407
408
409LUA_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

index2valueFunction · 0.70

Tested by

no test coverage detected