Rez: allow :-separated include paths

This commit is contained in:
Wolfgang Thaller 2015-07-20 21:36:55 +02:00
parent f1c4fe3a22
commit 436af616b8
1 changed files with 10 additions and 1 deletions

View File

@ -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()