Merge pull request #898 from devnexen/sdl_cpupauseinstr

Sys_CpuPause uses the new SDL_CPUPauseInstruction macro if available.
This commit is contained in:
Yamagi 2022-10-08 16:37:23 +02:00 committed by GitHub
commit 66dcc8edf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,6 +82,9 @@ char userGivenGame[MAX_QPATH];
qboolean quitnextframe;
#ifndef DEDICATED_ONLY
#ifdef SDL_CPUPauseInstruction
# define Sys_CpuPause() SDL_CPUPauseInstruction()
#else
static YQ2_ATTR_INLINE void Sys_CpuPause(void)
{
#if defined(__GNUC__)
@ -101,6 +104,7 @@ static YQ2_ATTR_INLINE void Sys_CpuPause(void)
#endif
}
#endif
#endif
static void Qcommon_Frame(int usec);