From 2c376feb1d5293a58043977d3550d38708ef49e4 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Fri, 17 May 2024 23:20:02 +0100 Subject: [PATCH] More fixing of functions logic wip --- include/functions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions.h b/include/functions.h index dffc425..e6512fc 100644 --- a/include/functions.h +++ b/include/functions.h @@ -4,7 +4,7 @@ using namespace std; -int callCounter = 0; +int callCounter = 1; string translateFunction(string name, int args) { @@ -12,7 +12,7 @@ string translateFunction(string name, int args) output << "(" << name << ")" << endl; - for (int i = 0; i < args; i++) + for (int i = 0; i < args; ++i) { output << "@0" << endl; output << "D=A" << endl;