From 7d615b91a511730e8518a62476001ce763c77698 Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Fri, 5 Dec 2014 01:23:12 +0100 Subject: [PATCH] Adding missing header for assert(), not in ns std::. Closes #13 --- Nodes.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Nodes.cpp b/Nodes.cpp index 3dbc097..2ebf93d 100644 --- a/Nodes.cpp +++ b/Nodes.cpp @@ -180,7 +180,7 @@ void Abort::emit(std::ostream &stream, int indent) { } void Assert::emit(std::ostream &stream, int indent) { - stream << "std::assert("; + stream << "assert("; expression->emit(stream); stream << ")"; } @@ -224,6 +224,7 @@ void Main::emit(std::ostream &stream, int indent) { void Program::emit(std::ostream &stream, int indent) { stream << "#include \n"; + stream << "#include \n"; stream << "#include \n\n"; for (Function *f: functions) {