mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 23:38:09 -05:00
Fix error in define expression crash
This commit is contained in:
@ -41,7 +41,7 @@ bool SetDefineStreamProxy::MatchSetDirective(const ParserLine& line, const unsig
|
||||
if (expressionString.empty())
|
||||
throw ParsingException(CreatePos(line, currentPosition), "Cannot set without an expression.");
|
||||
|
||||
const auto expression = m_defines_proxy->ParseExpression(expressionString);
|
||||
const auto expression = m_defines_proxy->ParseExpression(line.m_filename, line.m_line_number, expressionString);
|
||||
if (!expression)
|
||||
throw ParsingException(CreatePos(line, currentPosition), "Failed to parse set expression");
|
||||
|
||||
|
@ -110,7 +110,7 @@ bool TemplatingStreamProxy::MatchFilenameDirective(const ParserLine& line, const
|
||||
if (expressionString.empty())
|
||||
throw ParsingException(CreatePos(line, currentPosition), "Cannot pragma filename without an expression.");
|
||||
|
||||
const auto expression = m_defines_proxy->ParseExpression(expressionString);
|
||||
const auto expression = m_defines_proxy->ParseExpression(line.m_filename, line.m_line_number, expressionString);
|
||||
if (!expression)
|
||||
throw ParsingException(CreatePos(line, currentPosition), "Failed to parse pragma filename expression");
|
||||
|
||||
|
Reference in New Issue
Block a user