MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / lua_tointegerx

Function lua_tointegerx

ThirdParty/lua/lua/lapi.c:355–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

math_tointFunction · 0.85
luaL_checkintegerFunction · 0.85
lua_IntegerFunction · 0.85
getfieldFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected