There is a bug in the preprocessor (source
) with the -C (comments) flag, this will cause single lines with comments on the end to be deleted / commented out. The fix is simply to remove the switch from the batch file if you have already downloaded it. I am uploading a fixed version now too. This means comments won't be in the output file (but this shouldn't be an issue, as you will be editing files with comments in just fine).
Fixed batch script:
::Batch file to aid HPS preprocessing - Apjjm.
::%1 - Directory of file to pre-process (and where output should go)
::%2 - Name of file to pre-process
::%3 - Name of file to output (the pre-processed file)
::PATH TO MCPP. You probably won't need to change this.
::ERROR FILE NAME
%MCPP% "%2" "%3" -P -W0 2> %ERRF%
CALL :ShowErrors %ERRF%
IF NOT "%~z1" =="0" ( ECHO ERRORS FOUND PRE-PROCESSING - SEE %1
Edit: First post updated with new link.