Page 1 of 1

IDE + Tools + StopCompile

Posted: Wed May 02, 2012 10:49 am
by CSHW89
Hi,
i'm currently writing a precompiler. If it found an error in a sourcecode and it ended with an exitcode <> 0, it would be useful if the IDE doesn't compile the sourcecode. e.g:

My Precompiler:

Code: Select all

;...
Procedure CheckCode(file.s)
  ;...
  If (error)
    MessageRequester("MyPrecompiler", "Syntax error")
    End 1 ; says the IDE, it shouldn't compile
  EndIf
EndProcedure
;...
lg Kevin

Re: IDE + Tools + StopCompile

Posted: Wed May 02, 2012 2:56 pm
by Danilo
CSHW89 wrote:Hi,
i'm currently writing a precompiler. If it found an error in a sourcecode and it ended with an exitcode <> 0, it would be useful if the IDE doesn't compile the sourcecode. e.g:
This has been requested before, can't find the topic now.

Yes, it would be useful. For now, you can output the following file to the compiler (instead the real preprocessed file):

Code: Select all

CompilerError("your own error message")