From 8c7c9ea06502b8caa5224bf74c90a8885dbe0d42 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 27 Jul 2020 11:24:03 -0300 Subject: Function 'printobj' in 'ltests.c' made public It helps to have this function available for debugging. --- ltests.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ltests.h') diff --git a/ltests.h b/ltests.h index 2b4498cc..1a2d8d28 100644 --- a/ltests.h +++ b/ltests.h @@ -72,7 +72,13 @@ extern void *l_Trick; /* ** Function to traverse and check all memory used by Lua */ -int lua_checkmemory (lua_State *L); +LUAI_FUNC int lua_checkmemory (lua_State *L); + +/* +** Function to print an object GC-friendly +*/ +struct GCObject; +LUAI_FUNC void lua_printobj (lua_State *L, struct GCObject *o); /* test for lock/unlock */ -- cgit v1.2.3-55-g6feb