From 3200f04de946049e950c6f7fd1e9d4d2f599c9ea Mon Sep 17 00:00:00 2001 From: ame Date: Tue, 7 May 2024 14:09:48 -0500 Subject: more work on threads --- src/io.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/io.c') 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){ -- cgit v1.2.3