From 193bf7919ea97a2d1a98734e1a215ee6d3fc021b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 5 Jul 2024 14:57:11 -0300 Subject: 'printstack' (from ltests.c) made public That function is useful for debugging the API. --- ltests.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ltests.h') diff --git a/ltests.h b/ltests.h index da773d6e..078c9fc3 100644 --- a/ltests.h +++ b/ltests.h @@ -64,7 +64,6 @@ LUA_API Memcontrol l_memcontrol; extern void *l_Trick; - /* ** Function to traverse and check all memory used by Lua */ @@ -76,6 +75,11 @@ LUAI_FUNC int lua_checkmemory (lua_State *L); struct GCObject; LUAI_FUNC void lua_printobj (lua_State *L, struct GCObject *o); +/* +** Function to print the stack +*/ +LUAI_FUNC void lua_printstack (lua_State *L); + /* test for lock/unlock */ -- cgit v1.2.3-55-g6feb