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/pushzero.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/instruction/pushzero.c (limited to 'src/instruction/pushzero.c') diff --git a/src/instruction/pushzero.c b/src/instruction/pushzero.c new file mode 100644 index 0000000..ef380cd --- /dev/null +++ b/src/instruction/pushzero.c @@ -0,0 +1,10 @@ +#include "3cl.h" +#include "instruction.h" + +#include "stack.h" + +struct CCLFrame *ccl_instruction_pushzero(struct CCL *ccl, struct CCLFrame *frame) +{ + ccl_stack_push(&ccl->stack, 0); + return frame; +} -- cgit 1.4.1