diff options
author | Bad Diode <bd@badd10de.dev> | 2021-10-27 13:59:25 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-10-27 13:59:25 +0200 |
commit | ad659dca44892a5f2ba4e088603a819af58a5819 (patch) | |
tree | 9743e49b7be6a93bf718a6dbe4a3e7faf4c54d09 /src/bytecode/debug.h | |
parent | f0cd7a3cab56a6f8d7b4520aaa168a271a94d6d4 (diff) | |
download | bdl-ad659dca44892a5f2ba4e088603a819af58a5819.tar.gz bdl-ad659dca44892a5f2ba4e088603a819af58a5819.zip |
Add support for lexically scoped local variables
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)) { |