| 2097 | } |
| 2098 | |
| 2099 | staticfn uint32_t |
| 2100 | nhl_getmeminuse(lua_State *L) |
| 2101 | { |
| 2102 | return lua_gc(L, LUA_GCCOUNT) * 1024 + lua_gc(L, LUA_GCCOUNTB); |
| 2103 | } |
| 2104 | |
| 2105 | /* lua_pcall with our traceback handler and memory and instruction step |
| 2106 | * limiting. |