MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / get_limits

Function get_limits

Dependencies/lua/src/ltests.c:827–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825
826
827static int get_limits (lua_State *L) {
828 lua_createtable(L, 0, 6);
829 setnameval(L, "IS32INT", LUAI_IS32INT);
830 setnameval(L, "MAXARG_Ax", MAXARG_Ax);
831 setnameval(L, "MAXARG_Bx", MAXARG_Bx);
832 setnameval(L, "OFFSET_sBx", OFFSET_sBx);
833 setnameval(L, "LFPF", LFIELDS_PER_FLUSH);
834 setnameval(L, "NUM_OPCODES", NUM_OPCODES);
835 return 1;
836}
837
838
839static int mem_query (lua_State *L) {

Callers

nothing calls this directly

Calls 2

lua_createtableFunction · 0.85
setnamevalFunction · 0.85

Tested by

no test coverage detected