MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / lua_tointegerx

Function lua_tointegerx

lua/src/lapi.c:393–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391
392
393LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) {
394 lua_Integer res = 0;
395 const TValue *o = index2value(L, idx);
396 int isnum = tointeger(o, &res);
397 if (pisnum)
398 *pisnum = isnum;
399 return res;
400}
401
402
403LUA_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

index2valueFunction · 0.85

Tested by

no test coverage detected