Skip to content

Commit

Permalink
Remove printf
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-byers committed Aug 14, 2024
1 parent 6f94738 commit 13bdfcb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/code.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ void pawK_fix_line(struct FuncState *fs, int line)
fs->proto->lines[fs->nlines - 1].line = line;
}

#include "debug.h"
static void add_opcode(struct FuncState *fs, OpCode code)
{
paw_Env *P = ENV(fs->G);
Expand All @@ -38,9 +37,6 @@ static void add_opcode(struct FuncState *fs, OpCode code)
pawM_grow(P, p->source, fs->pc, p->length);
p->source[fs->pc] = code;
++fs->pc;

printf("%d (pc=%d): ", fs->line, fs->pc-1);
paw_dump_opcode(code);
}

void pawK_code_0(struct FuncState *fs, Op op)
Expand Down

0 comments on commit 13bdfcb

Please sign in to comment.