use the 'aborts' pragma of Watcom for SDL_NORETURN functions
authorOzkan Sezer <sezeroz@gmail.com>
Wed, 13 Jun 2018 14:45:02 +0300
changeset 12018812b05d074fe
parent 12017 d8a165136edf
child 12019 25d299fc8443
use the 'aborts' pragma of Watcom for SDL_NORETURN functions
SDL_ExitProcess(), SDL_AbortAssertion() and SDLTest_BailOut().

(Commit c8b4a5166613 for bug #4100 removed SDL_NORETURN from
SDL_ExitProcess() and SDL_AbortAssertion() in order to avoid
warnings from windows builds, but that's temporary I guess..)
src/SDL_assert.c
src/test/SDL_test_harness.c
     1.1 --- a/src/SDL_assert.c	Tue Jun 12 13:22:58 2018 -0700
     1.2 +++ b/src/SDL_assert.c	Wed Jun 13 14:45:02 2018 +0300
     1.3 @@ -120,6 +120,9 @@
     1.4  }
     1.5  
     1.6  
     1.7 +#if defined(__WATCOMC__)
     1.8 +#pragma aux SDL_ExitProcess aborts;
     1.9 +#endif
    1.10  static void SDL_ExitProcess(int exitcode)
    1.11  {
    1.12  #ifdef __WIN32__
    1.13 @@ -138,6 +141,9 @@
    1.14  }
    1.15  
    1.16  
    1.17 +#if defined(__WATCOMC__)
    1.18 +#pragma aux SDL_AbortAssertion aborts;
    1.19 +#endif
    1.20  static void SDL_AbortAssertion(void)
    1.21  {
    1.22      SDL_Quit();
     2.1 --- a/src/test/SDL_test_harness.c	Tue Jun 12 13:22:58 2018 -0700
     2.2 +++ b/src/test/SDL_test_harness.c	Wed Jun 13 14:45:02 2018 +0300
     2.3 @@ -206,6 +206,9 @@
     2.4  /**
     2.5  * \brief Timeout handler. Aborts test run and exits harness process.
     2.6  */
     2.7 +#if defined(__WATCOMC__)
     2.8 +#pragma aux SDLTest_BailOut aborts;
     2.9 +#endif
    2.10  static SDL_NORETURN void
    2.11  SDLTest_BailOut()
    2.12  {