MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / lua_Integer lua_tointegerx

Function lua_Integer lua_tointegerx

Plugins/slua_unreal/External/lua/lapi.cpp:354–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected