Add FPC_SYSTEM_EXIT_NO_RETURN macro for embedded target

git-svn-id: trunk@40801 -
This commit is contained in:
pierre 2019-01-07 21:41:18 +00:00
parent 2ceb5c9683
commit 3a52fdf997
2 changed files with 3 additions and 1 deletions

View File

@ -197,6 +197,7 @@ const calculated_cmdline:Pchar=nil;
{$endif FPC_HAS_FEATURE_SOFTFPU}
{$endif FPUNONE}
{$define FPC_SYSTEM_EXIT_NO_RETURN}
{$I system.inc}
{*****************************************************************************

View File

@ -1020,7 +1020,8 @@ end;
Error / Exit / ExitProc
*****************************************************************************}
Procedure system_exit;forward;
Procedure system_exit;forward;{$ifdef FPC_SYSTEM_EXIT_NO_RETURN}noreturn;{$endif}
{$ifdef FPC_HAS_FEATURE_HEAP}
{$ifndef HAS_MEMORYMANAGER}
//not needed if independant memory manager