aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-05 14:57:11 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-05 14:57:11 -0300
commit193bf7919ea97a2d1a98734e1a215ee6d3fc021b (patch)
treeff88b95b15bdb34961d2c12f33ae0a6bab507a1a /ltests.h
parent366c85564874d560b3608349f752e9e490f9002d (diff)
downloadlua-193bf7919ea97a2d1a98734e1a215ee6d3fc021b.tar.gz
lua-193bf7919ea97a2d1a98734e1a215ee6d3fc021b.tar.bz2
lua-193bf7919ea97a2d1a98734e1a215ee6d3fc021b.zip
'printstack' (from ltests.c) made public
That function is useful for debugging the API.
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h6
1 files changed, 5 insertions, 1 deletions
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;
64extern void *l_Trick; 64extern void *l_Trick;
65 65
66 66
67
68/* 67/*
69** Function to traverse and check all memory used by Lua 68** Function to traverse and check all memory used by Lua
70*/ 69*/
@@ -76,6 +75,11 @@ LUAI_FUNC int lua_checkmemory (lua_State *L);
76struct GCObject; 75struct GCObject;
77LUAI_FUNC void lua_printobj (lua_State *L, struct GCObject *o); 76LUAI_FUNC void lua_printobj (lua_State *L, struct GCObject *o);
78 77
78/*
79** Function to print the stack
80*/
81LUAI_FUNC void lua_printstack (lua_State *L);
82
79 83
80/* test for lock/unlock */ 84/* test for lock/unlock */
81 85