Implement defines with parameters to ZoneCodeGenerator

This commit is contained in:
Jan
2021-03-04 11:37:06 +01:00
parent 29b962e949
commit 5f3aa2a460
5 changed files with 360 additions and 21 deletions

View File

@ -43,7 +43,7 @@ void CommandsFileReader::SetupStreamProxies()
auto commentProxy = std::make_unique<CommentRemovingStreamProxy>(m_stream);
auto includeProxy = std::make_unique<IncludingStreamProxy>(commentProxy.get());
auto definesProxy = std::make_unique<DefinesStreamProxy>(includeProxy.get());
definesProxy->AddDefine(ZONE_CODE_GENERATOR_DEFINE_NAME, ZONE_CODE_GENERATOR_DEFINE_VALUE);
definesProxy->AddDefine(DefinesStreamProxy::Define(ZONE_CODE_GENERATOR_DEFINE_NAME, ZONE_CODE_GENERATOR_DEFINE_VALUE));
m_stream = definesProxy.get();