Fix ticket #57 (wrong path in error message)
This commit is contained in:
parent
5acc6aca31
commit
22593adeac
|
@ -272,14 +272,6 @@ void Tokenizer::tokenize(std::istream &code, const char FileName[])
|
|||
if (line.find("\"") != std::string::npos)
|
||||
line.erase(line.find("\""));
|
||||
|
||||
// Relative path..
|
||||
if (_files.back().find_first_of("\\/") != std::string::npos)
|
||||
{
|
||||
std::string path = _files.back();
|
||||
path.erase(1 + path.find_last_of("\\/"));
|
||||
line = path + line;
|
||||
}
|
||||
|
||||
// Has this file been tokenized already?
|
||||
++lineno;
|
||||
bool foundOurfile = false;
|
||||
|
|
Loading…
Reference in New Issue