News:

Let's find out together what makes a PIC Tick!

Main Menu

Fix the returned output code of the compiler.

Started by atomix, Nov 27, 2021, 11:38 AM

Previous topic - Next topic

atomix

Return code of the result of the log file Loader.exe is always equal to 0.

top204

#1
The loader does issue an exit code, but I stopped using that method years ago, because Windows 8 onwards did not always handle them correctly. They are a throw-back from DOS days. I first noticed this method not being as it once was, when the Mpasm assembler stopped giving a valid return value, and the mpasm version had not changed, but the Windows version had!

Inside the loader and preprocessor and optimiser and compiler, they use, and always have used:

PostQuitMessage(ExitResult);

Where the ExitResult variable holds the value to exit with, depending on what has happened inside the code.

The compilers work as they should with the parsing of the returns for errors or completions, so they will remain as they are.

To read the completion of the compiler, open the .pbe file that the compiler creates and everything is inside it as text, and with a set format.

atomix

I just try to create an extension for vscode to make the code editor for Positron.