MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / getnumlimit

Function getnumlimit

third-party/lua-5.4.6/src/lstrlib.c:1466–1472  ·  view source on GitHub ↗

** Read an integer numeral and raises an error if it is larger ** than the maximum size for integers. */

Source from the content-addressed store, hash-verified

1464** than the maximum size for integers.
1465*/
1466static int getnumlimit (Header *h, const char **fmt, int df) {
1467 int sz = getnum(fmt, df);
1468 if (l_unlikely(sz > MAXINTSIZE || sz <= 0))
1469 return luaL_error(h->L, "integral size (%d) out of limits [1,%d]",
1470 sz, MAXINTSIZE);
1471 return sz;
1472}
1473
1474
1475/*

Callers 1

getoptionFunction · 0.70

Calls 2

getnumFunction · 0.70
luaL_errorFunction · 0.70

Tested by

no test coverage detected