aboutsummaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorame <[email protected]>2024-05-07 14:09:48 -0500
committerame <[email protected]>2024-05-07 14:09:48 -0500
commit3200f04de946049e950c6f7fd1e9d4d2f599c9ea (patch)
tree68a9e2f5e2f496fc630d036fd27f2aae9fb2ad23 /src/io.c
parenta571dd1ac9fc4d46e0bbc95a3ab88f52ee37b1a1 (diff)
more work on threads
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/io.c b/src/io.c
index 36561d1..06fa535 100644
--- a/src/io.c
+++ b/src/io.c
@@ -157,6 +157,14 @@ void i_pprint(lua_State* L, int indent, int skip_indent){
else printf(color_gray" : <%s>"color_reset,type);
}
+ if(_print_meta && lua_getmetatable(L, -1) != 0){
+ printf(color_lblue" (metatable "color_reset);
+ int c = lua_gettop(L) - 1;
+ i_pprint(L,indent+1,1);
+ printf(color_lblue")"color_reset);
+ lua_settop(L, c);
+ }
+
}
int l_pprint(lua_State* L){