aboutsummaryrefslogtreecommitdiffstats
path: root/c_parser/include/ast_function.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'c_parser/include/ast_function.hpp')
-rw-r--r--c_parser/include/ast_function.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/c_parser/include/ast_function.hpp b/c_parser/include/ast_function.hpp
index 86230d1..085957c 100644
--- a/c_parser/include/ast_function.hpp
+++ b/c_parser/include/ast_function.hpp
@@ -22,7 +22,10 @@ public:
std::cout << "</Function>" << std::endl;
}
- virtual void push(const ast_Base* var) const {}
+ virtual void push(const ast_Base* var) const {
+ std::cerr << "Error: Can't call this function on this class" << std::endl;
+ (void)var;
+ }
};
class ast_ParamList : public ast_Base {
@@ -30,6 +33,8 @@ private:
mutable std::vector<const ast_Base*> param_list;
public:
+ ast_ParamList() {}
+
ast_ParamList(const ast_Base* param) {
param_list.push_back(param);
}