diff options
Diffstat (limited to 'src/bytecode/debug.h')
-rwxr-xr-x | src/bytecode/debug.h | 6 |
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 | ||
49 | void | 49 | void |
50 | disassemble_chunk(Chunk *chunk) { | 50 | disassemble_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)) { |