- count errors in the parser and abort afterward if there were some.

- use FScriptPosition's error counter throughout the compiler so that there is only one counter for everything, not two.

Parts of the compiler use FScriptPosition, so this is easier to handle than having a separate counter in the compiler class. It also avoids having to pass the compiler object to any function where an error may be output. The TreeNodes contain sufficient data to be converted to an FScriptPosition and using that for error message formatting.
This commit is contained in:
Christoph Oelckers 2016-10-15 12:15:25 +02:00
commit 2cb5839c11
8 changed files with 32 additions and 8 deletions

View file

@ -127,6 +127,7 @@ void LoadActors ()
InitThingdef();
ParseScripts();
ParseAllDecorate();
FunctionBuildList.Build();