** Avoid these stat codes from being collected, to avoid possible ** memory error when pushing them. */
| 1368 | ** memory error when pushing them. |
| 1369 | */ |
| 1370 | static 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) |
no test coverage detected