Skip to content

Commit 4930604

Browse files
committed
Fixs, Ajout de paramètres essentiels et +.
1 parent df6d893 commit 4930604

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/FonctionDefinition.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "FonctionDefinition.h"
22

33
namespace FPL {
4-
void FonctionDefinition::FDebugPrint() const {
4+
[[maybe_unused]] void FonctionDefinition::FDebugPrint() const {
55
std::cout << FonctionName << "(" << std::endl;
66
for (ArgumentDefinition arg : ArgsFonction) {
77
arg.ADebugPrint();

src/FonctionDefinition.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
#include <string>
55
#include <vector>
66
#include "TypeManager.h"
7+
#include "VariableDefinition.h"
78

89
namespace FPL {
910
class ArgumentDefinition {
1011
public:
1112
std::string ArgName;
1213
Type ArgType;
14+
std::string ArgValue;
1315

1416
void ADebugPrint() const;
1517
};
@@ -19,7 +21,9 @@ namespace FPL {
1921
std::string FonctionName;
2022
std::vector<ArgumentDefinition> ArgsFonction;
2123
std::vector<std::string> FonctionContent;
24+
bool HasArgument = false;
25+
int NumberArgument = 0;
2226

23-
void FDebugPrint() const;
27+
[[maybe_unused]] void FDebugPrint() const;
2428
};
2529
}

0 commit comments

Comments
 (0)