From 32c1bcb859426c73e3bc45fa537e932018346d07 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 1 Nov 2023 21:39:00 +0000 Subject: Added a print_heap mechanism into vm Pretty simple implementation, nothing massive. In VERBOSE mode, heap is tracked for any allocations/deletions, printing it if so. --- vm/runtime.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vm/runtime.h') diff --git a/vm/runtime.h b/vm/runtime.h index 9ac1b47..c8f5d49 100644 --- a/vm/runtime.h +++ b/vm/runtime.h @@ -70,6 +70,7 @@ void vm_stop(vm_t *); void vm_print_registers(vm_t *, FILE *); void vm_print_stack(vm_t *, FILE *); void vm_print_program(vm_t *, FILE *); +void vm_print_heap(vm_t *, FILE *); void vm_print_all(vm_t *, FILE *); // Execution routines -- cgit v1.2.3-13-gbd6f