aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-27 11:24:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-27 11:24:03 -0300
commit8c7c9ea06502b8caa5224bf74c90a8885dbe0d42 (patch)
tree317154d0f3912cdc417f4284b8fc804bc4557489 /ltests.h
parenta6da1472c0c5e05ff249325f979531ad51533110 (diff)
downloadlua-8c7c9ea06502b8caa5224bf74c90a8885dbe0d42.tar.gz
lua-8c7c9ea06502b8caa5224bf74c90a8885dbe0d42.tar.bz2
lua-8c7c9ea06502b8caa5224bf74c90a8885dbe0d42.zip
Function 'printobj' in 'ltests.c' made public
It helps to have this function available for debugging.
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h8
1 files changed, 7 insertions, 1 deletions
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;
72/* 72/*
73** Function to traverse and check all memory used by Lua 73** Function to traverse and check all memory used by Lua
74*/ 74*/
75int lua_checkmemory (lua_State *L); 75LUAI_FUNC int lua_checkmemory (lua_State *L);
76
77/*
78** Function to print an object GC-friendly
79*/
80struct GCObject;
81LUAI_FUNC void lua_printobj (lua_State *L, struct GCObject *o);
76 82
77 83
78/* test for lock/unlock */ 84/* test for lock/unlock */