aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
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.c
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.c')
-rw-r--r--ltests.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ltests.c b/ltests.c
index 0513354c..a4e5d282 100644
--- a/ltests.c
+++ b/ltests.c
@@ -309,6 +309,10 @@ static void printobj (global_State *g, GCObject *o) {
309} 309}
310 310
311 311
312void lua_printobj (lua_State *L, struct GCObject *o) {
313 printobj(G(L), o);
314}
315
312static int testobjref (global_State *g, GCObject *f, GCObject *t) { 316static int testobjref (global_State *g, GCObject *f, GCObject *t) {
313 int r1 = testobjref1(g, f, t); 317 int r1 = testobjref1(g, f, t);
314 if (!r1) { 318 if (!r1) {