aboutsummaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorame <[email protected]>2024-02-05 16:03:56 -0600
committerame <[email protected]>2024-02-05 16:03:56 -0600
commit340f17a474401563de89aa0444f7cdee209b9c35 (patch)
treee4bb24263fade94cbeeaaa81a6ef5e0d352cb461 /src/io.c
parent056b24c2601c9ac932134c69cb1559905fa2d18b (diff)
cleaning and fixes
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index 14117ec..5eb9de8 100644
--- a/src/io.c
+++ b/src/io.c
@@ -114,10 +114,12 @@ void i_pprint(lua_State* L, int indent, int skip_indent){
} else {
if(!skip) print_indentation(indent + 1);
}
+ int tuwu = lua_gettop(L);
i_pprint(L,indent+1,1);
printf(",");
if(!skip) printf("\n");
-
+
+ lua_settop(L, tuwu);
lua_pop(L,1);
}
print_indentation(indent);