MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / lua_tointegerx

Function lua_tointegerx

extlibs/lua/src/lapi.c:362–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360
361
362LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) {
363 lua_Integer res = 0;
364 const TValue *o = index2value(L, idx);
365 int isnum = tointeger(o, &res);
366 if (pisnum)
367 *pisnum = isnum;
368 return res;
369}
370
371
372LUA_API int lua_toboolean (lua_State *L, int idx) {

Callers 8

math_tointFunction · 0.85
luaL_checkintegerFunction · 0.85
lua_IntegerFunction · 0.85
getfieldFunction · 0.85
lua_Integer luaL_lenFunction · 0.85
checkMethod · 0.85
getMethod · 0.85
get_usingMethod · 0.85

Calls 1

index2valueFunction · 0.85

Tested by

no test coverage detected