diff options
Diffstat (limited to 'src/instruction/add.c')
| -rw-r--r-- | src/instruction/add.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/instruction/add.c b/src/instruction/add.c deleted file mode 100644 index 23d4f8c..0000000 --- a/src/instruction/add.c +++ /dev/null @@ -1,13 +0,0 @@ -#include "3cl.h" - -#include "stack.h" -#include "utils.h" - -struct CCLFrame *ccl_instruction_add(struct CCL *ccl, struct CCLFrame *frame) -{ - if (ccl->stack.cur < 2) - die(1, "stack size is %d (%d required)", ccl->stack.cur, 2); - ccl_stack_push(&ccl->stack, ccl_stack_pop(&ccl->stack) + ccl_stack_pop(&ccl->stack)); - - return frame; -} |