mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
Make defines proxy accept whitespace
This commit is contained in:
parent
ba3084700e
commit
6b7a71a1bb
@ -137,6 +137,9 @@ std::vector<std::string> DefinesStreamProxy::MatchDefineParameters(const ParserL
|
||||
if (!ExtractIdentifier(line, parameterPosition))
|
||||
throw ParsingException(CreatePos(line, parameterPosition), "Cannot extract name of parameter of define");
|
||||
|
||||
if(!SkipWhitespace(line, parameterPosition))
|
||||
throw ParsingException(CreatePos(line, parameterPosition), "Unclosed define parameters");
|
||||
|
||||
parameters.emplace_back(std::string(line.m_line, nameStartPos, parameterPosition - nameStartPos));
|
||||
|
||||
if (parameterPosition >= line.m_line.size())
|
||||
|
Loading…
x
Reference in New Issue
Block a user