mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-13 16:33:02 +00:00
Rez: allow :-separated include paths
This commit is contained in:
parent
f1c4fe3a22
commit
436af616b8
@ -122,7 +122,16 @@ void RezLexer::addDefine(std::string str)
|
||||
|
||||
void RezLexer::addIncludePath(std::string path)
|
||||
{
|
||||
pImpl->ctx.add_include_path(path.c_str());
|
||||
std::size_t pos = path.find(':');
|
||||
if(pos == std::string::npos)
|
||||
{
|
||||
pImpl->ctx.add_include_path(path.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
addIncludePath(path.substr(0,pos));
|
||||
addIncludePath(path.substr(pos + 1));
|
||||
}
|
||||
}
|
||||
|
||||
bool RezLexer::atEnd()
|
||||
|
Loading…
x
Reference in New Issue
Block a user