From 2b0e05cbc1e4d9beccd3a5867c8730880f6ecc10 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Fri, 23 Aug 2024 20:43:31 +0300 Subject: Start to rewriting code Since there's some UB in the master I decided to rewrite code from scratch again. I hope that attempt will be better :D --- src/instruction/increment.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/instruction/increment.c (limited to 'src/instruction/increment.c') diff --git a/src/instruction/increment.c b/src/instruction/increment.c new file mode 100644 index 0000000..51697f1 --- /dev/null +++ b/src/instruction/increment.c @@ -0,0 +1,8 @@ +#include "3cl.h" +#include "instruction.h" + +struct CCLFrame *ccl_instruction_increment(struct CCL *ccl, struct CCLFrame *frame) +{ + ++ccl->stack.stack[ccl->stack.cur]; + return frame; +} -- cgit 1.4.1