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
commit43f85a15884a344238e25c118768d36976ae783a (patch)
tree68a9e2f5e2f496fc630d036fd27f2aae9fb2ad23 /src/io.c
parent618263f6f85d08bfd85d4f0376663aa1e2f58eac (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){