mirror of
https://github.com/autc04/Retro68.git
synced 2025-08-07 21:25:38 +00:00
Rez: allow :-separated include paths
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user