From e7a7526ea96e681566ec75be1564e0feb5fe76b4 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 3 Feb 2024 10:56:16 +0200 Subject: [PATCH] Minor code formatting --- src/nhlua.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nhlua.c b/src/nhlua.c index 6f40286db..95db470d8 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -73,6 +73,7 @@ static void init_u_data(lua_State *); static int nhl_set_package_path(lua_State *, const char *); #endif static int traceback_handler(lua_State *); +static uint32_t nhl_getmeminuse(lua_State *); #ifdef NHL_SANDBOX static void nhlL_openlibs(lua_State *, uint32_t); #endif @@ -1876,7 +1877,8 @@ traceback_handler(lua_State *L) } static uint32_t -nhl_getmeminuse(lua_State *L){ +nhl_getmeminuse(lua_State *L) +{ return lua_gc(L, LUA_GCCOUNT) * 1024 + lua_gc(L, LUA_GCCOUNTB); }