mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-16 14:29:40 +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)
|
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()
|
bool RezLexer::atEnd()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user