MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_tointegerx

Function lua_tointegerx

3rd/lua-5.4.3/src/lapi.c:383–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381
382
383LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) {
384 lua_Integer res = 0;
385 const TValue *o = index2value(L, idx);
386 int isnum = tointeger(o, &res);
387 if (pisnum)
388 *pisnum = isnum;
389 return res;
390}
391
392
393LUA_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