aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode/debug.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-27 13:59:25 +0200
committerBad Diode <bd@badd10de.dev>2021-10-27 13:59:25 +0200
commitad659dca44892a5f2ba4e088603a819af58a5819 (patch)
tree9743e49b7be6a93bf718a6dbe4a3e7faf4c54d09 /src/bytecode/debug.h
parentf0cd7a3cab56a6f8d7b4520aaa168a271a94d6d4 (diff)
downloadbdl-ad659dca44892a5f2ba4e088603a819af58a5819.tar.gz
bdl-ad659dca44892a5f2ba4e088603a819af58a5819.zip
Add support for lexically scoped local variables
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)) {