mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 07:42:54 +00:00
Skip defines stream proxy empty lines
This commit is contained in:
parent
1464329245
commit
d0155d426a
@ -1,12 +1,10 @@
|
||||
#pragma options TEST(asdf, bla)
|
||||
#pragma switch TEST_SWITCH
|
||||
|
||||
#ifdef TEST_SWITCH
|
||||
#define SVAL "1"
|
||||
#else
|
||||
#define SVAL "0"
|
||||
#endif
|
||||
|
||||
#pragma filename "lemao_" + TEST + SVAL + ".txt"
|
||||
HAHA TEST
|
||||
#ifdef TEST_SWITCH
|
||||
|
@ -663,22 +663,24 @@ ParserLine DefinesStreamProxy::NextLine()
|
||||
{
|
||||
auto line = m_stream->NextLine();
|
||||
|
||||
while (true)
|
||||
{
|
||||
if (m_in_define)
|
||||
{
|
||||
ContinueDefine(line);
|
||||
line.m_line.clear();
|
||||
line = m_stream->NextLine();
|
||||
}
|
||||
else if (MatchDirectives(line) || !m_modes.empty() && m_modes.top() != BlockMode::IN_BLOCK)
|
||||
{
|
||||
line.m_line.clear();
|
||||
line = m_stream->NextLine();
|
||||
}
|
||||
else
|
||||
{
|
||||
ExpandDefines(line);
|
||||
}
|
||||
|
||||
return line;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool DefinesStreamProxy::IncludeFile(const std::string& filename)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user