Skip to content

Commit

Permalink
fix: skip declaration of functions
Browse files Browse the repository at this point in the history
  • Loading branch information
darlanalves committed Feb 25, 2024
1 parent dc4c7db commit 2c3b285
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/include/vm_instructions.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// ========= Internals =========

void vm_next(Program *p);
void _printf(Program *p, const char *format, ...) __attribute__((format(printf, 2, 3)));
void _printf(Program *p, const char *format, ...)
Expand Down Expand Up @@ -644,7 +642,7 @@ void vm_next(Program *p)
break;

case op_define:
// counter += _readValue(p).toInteger();
p->counter += _readValue(p).toInteger();
break;

case op_restart:
Expand Down
1 change: 1 addition & 0 deletions src/include/vm_opcode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#define op_ioallout 0x47
#define op_iointerrupt 0x48
#define op_iointerruptToggle 0x49
#define op_ioallinput 0x50

// wifi [0x60..0x6f]
#define op_wifistatus 0x60
Expand Down

0 comments on commit 2c3b285

Please sign in to comment.