MCPcopy Create free account
hub / github.com/NetHack/NetHack / nhl_getmeminuse

Function nhl_getmeminuse

src/nhlua.c:2099–2103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2097}
2098
2099staticfn uint32_t
2100nhl_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.

Callers 3

nhl_pcallFunction · 0.85
nhl_doneFunction · 0.85
nhl_allocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected