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

Function regcodes

Dependencies/lua/src/ltests.c:1370–1376  ·  view source on GitHub ↗

** Avoid these stat codes from being collected, to avoid possible ** memory error when pushing them. */

Source from the content-addressed store, hash-verified

1368** memory error when pushing them.
1369*/
1370static void regcodes (lua_State *L) {
1371 unsigned int i;
1372 for (i = 0; i < sizeof(statcodes) / sizeof(statcodes[0]); i++) {
1373 lua_pushboolean(L, 1);
1374 lua_setfield(L, LUA_REGISTRYINDEX, statcodes[i]);
1375 }
1376}
1377
1378
1379#define EQ(s1) (strcmp(s1, inst) == 0)

Callers 1

luaB_opentestsFunction · 0.85

Calls 2

lua_pushbooleanFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected