From c74aea420c662039072f606b2d5ef1c73426e481 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sat, 24 Aug 2024 14:29:55 +0300 Subject: Add more code Add some funcitons to work with variables, add more instructions and add ability to stop the code from `ccl_instruction` --- include/stack.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/stack.h') diff --git a/include/stack.h b/include/stack.h index 27cc2f0..ac17ed3 100644 --- a/include/stack.h +++ b/include/stack.h @@ -3,7 +3,19 @@ #include "3cl.h" + +/** + * Push num to the stack + * @param stack Stack where to push + * @param num Number to push + */ void ccl_stack_push(struct CCLStack *stack, CCLNum num); + +/** + * Pop number from the stack + * @param stack Stack from where to pop + * @return Popped number + */ CCLNum ccl_stack_pop(struct CCLStack *stack); #endif /* __CCL_STACK_H__ */ -- cgit 1.4.1