diff --git a/compiler_lib/lexer.cpp b/compiler_lib/lexer.cpp
index 08bd003..2507958 100644
--- a/compiler_lib/lexer.cpp
+++ b/compiler_lib/lexer.cpp
@@ -67,7 +67,7 @@ char lexer::peekChar()
{
return m_file.peek();
}
- cerror("could not open test.c");
+ cerror("could not open test.c"); // add ...
return 'x';
}
@@ -84,7 +84,7 @@ char lexer::nextChar()
return c;
}
- cerror("could not open test.c");
+ cerror("could not open test.c"); // add ...
return 'x';
}
@@ -92,7 +92,7 @@ void lexer::pushChar(char ch)
{
if (!m_file.is_open())
{
- cerror("LEX error: could not open test.c");
+ cerror("LEX error: could not open test.c"); // add ...
return;
}
m_file.putback(ch);
@@ -111,7 +111,7 @@ void lexer::startLexer()
{
if (!m_file.is_open())
{
- cerror("failed to open file");
+ cerror("failed to open file"); // add ...
return;
}
diff --git a/compiler_lib/parser.cpp b/compiler_lib/parser.cpp
index 3bde1e7..a6971fd 100644
--- a/compiler_lib/parser.cpp
+++ b/compiler_lib/parser.cpp
@@ -247,7 +247,7 @@ void parser::parseVariableOrFunction()
}
else
{
- cerror("expected function or variable delcaration", token->getFilePosition());
+ cerror("expected function or variable declaration", token->getFilePosition());
assert(false);
}
pushNode(_node);
@@ -293,7 +293,7 @@ void parser::parseBody()
token = peekToken(); // '}', parseGlobalKeyword will pop this symbol
if (!token->isTokenTypeSymbol() || token->getCharValue() != '}')
{
- cerror("expected symbol '}' at ending of body");
+ cerror("expected symbol '}' at ending of body", token->getFilePosition());
}
pushNode(body_node);
diff --git a/unit_test/test.cpp b/unit_test/test.cpp
index 55a06f3..8565144 100644
--- a/unit_test/test.cpp
+++ b/unit_test/test.cpp
@@ -7,7 +7,7 @@
#ifdef __LOCAL__
std::string file_path = "test_files/";
-#else
+#else // __GTEST__
std::string file_path = "D:/a/braze_compiler/braze_compiler/unit_test/test_files/";
#endif // __LOCAL__
diff --git a/unit_test/unit_test.vcxproj b/unit_test/unit_test.vcxproj
index 18f7215..6e4fbb1 100644
--- a/unit_test/unit_test.vcxproj
+++ b/unit_test/unit_test.vcxproj
@@ -53,7 +53,7 @@
Use
pch.h
Disabled
- X64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ X64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions);__LOCAL__
EnableFastChecks
MultiThreadedDebugDLL
Level3