mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
[swift] in the scenario init->cleanup->init, treat already-loaded object as a warning, not an error
This commit is contained in:
@@ -348,7 +348,7 @@ bool LoadOnePackage(const string& inPath, int pass)
|
|||||||
{
|
{
|
||||||
gPackageNames[tokens[1]] = inPath;
|
gPackageNames[tokens[1]] = inPath;
|
||||||
} else {
|
} else {
|
||||||
parse_err = true;
|
//parse_err = true; // warning, not error
|
||||||
XPLMDump(path, lineNum, line) << "XSB WARNING: Package name " << tokens[1].c_str() << " already in use by "<< gPackageNames[tokens[1]].c_str() << " reqested by use by " << inPath.c_str() << "'\n";
|
XPLMDump(path, lineNum, line) << "XSB WARNING: Package name " << tokens[1].c_str() << " already in use by "<< gPackageNames[tokens[1]].c_str() << " reqested by use by " << inPath.c_str() << "'\n";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user