From ad659dca44892a5f2ba4e088603a819af58a5819 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Wed, 27 Oct 2021 13:59:25 +0200 Subject: Add support for lexically scoped local variables --- src/bytecode/debug.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/bytecode/debug.h') 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[] = { void disassemble_chunk(Chunk *chunk) { - if (array_size(chunk->name) < 1) { - printf("===== main =====\n"); - } else { - printf("===== %.*s =====\n", (int)array_size(chunk->name), chunk->name); - } + printf("===== %.*s =====\n", (int)array_size(chunk->name), chunk->name); printf("code:\n"); size_t offset = 0; while (offset < array_size(chunk->code)) { -- cgit v1.2.1