Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ptomato committed Oct 21, 2023
1 parent e3434e8 commit 6b77f86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interpreters/glulxe/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,14 @@ int init_serial()
return TRUE;
}

#include <stdio.h>

/* final_serial():
Clean up memory when the VM shuts down.
*/
void final_serial()
{
fprintf(stderr, "-----\nfinal_serial undo_chain=%p\n-----\n", undo_chain);
if (undo_chain) {
int ix;
for (ix=0; ix<undo_chain_num; ix++) {
Expand Down Expand Up @@ -202,6 +205,7 @@ glui32 perform_saveundo()
if (undo_chain_num < undo_chain_size)
undo_chain_num += 1;
dest.ptr = NULL;
fprintf(stderr, "-----\nsuccessful perform_saveundo\n-----\n");
}
else {
/* It didn't work. */
Expand Down

0 comments on commit 6b77f86

Please sign in to comment.