mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-25 07:44:08 +00:00
better script compiler diagnostics
This commit is contained in:
parent
c3ef39eb6f
commit
c97845d35d
@ -85,8 +85,6 @@ namespace MWScript
|
||||
mParser.getCode (code);
|
||||
mScripts.insert (std::make_pair (name, std::make_pair (code, mParser.getLocals())));
|
||||
|
||||
// TODO sanity check on generated locals
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -175,6 +173,11 @@ namespace MWScript
|
||||
|
||||
if (const ESM::Script *script = mStore.get<ESM::Script>().find (name2))
|
||||
{
|
||||
if (mVerbose)
|
||||
std::cout
|
||||
<< "scanning script for local variable declarations: " << name2
|
||||
<< std::endl;
|
||||
|
||||
Compiler::Locals locals;
|
||||
|
||||
std::istringstream stream (script->mScriptText);
|
||||
|
Loading…
x
Reference in New Issue
Block a user