aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytecode/debug.h')
-rwxr-xr-xsrc/bytecode/debug.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/bytecode/debug.h b/src/bytecode/debug.h
index 54d2cdb..e2e3756 100755
--- a/src/bytecode/debug.h
+++ b/src/bytecode/debug.h
@@ -48,11 +48,7 @@ static const char* ops_str[] = {
48 48
49void 49void
50disassemble_chunk(Chunk *chunk) { 50disassemble_chunk(Chunk *chunk) {
51 if (array_size(chunk->name) < 1) { 51 printf("===== %.*s =====\n", (int)array_size(chunk->name), chunk->name);
52 printf("===== main =====\n");
53 } else {
54 printf("===== %.*s =====\n", (int)array_size(chunk->name), chunk->name);
55 }
56 printf("code:\n"); 52 printf("code:\n");
57 size_t offset = 0; 53 size_t offset = 0;
58 while (offset < array_size(chunk->code)) { 54 while (offset < array_size(chunk->code)) {