Skip to content

Commit 7284a9c

Browse files
committed
Add new lua_gcdump API
1 parent 234c2b1 commit 7284a9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

luau/Custom/src/lextra.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "lua.h"
22
#include "lapi.h"
3+
#include "lgc.h"
34
#include "lobject.h"
45
#include "lstate.h"
56

@@ -19,3 +20,8 @@ extern "C" const void* lua_getmetatablepointer(lua_State* L, int objindex)
1920
return NULL;
2021
}
2122
}
23+
24+
extern "C" void lua_gcdump(lua_State* L, void* file, const char* (*categoryName)(lua_State* L, uint8_t memcat))
25+
{
26+
luaC_dump(L, file, categoryName);
27+
}

0 commit comments

Comments
 (0)