Remove useless LIKELY() and UNLIKELY() macros.

[GB.SDL]
* NEW: Remove useless LIKELY() and UNLIKELY() macros.
This commit is contained in:
Benoît Minisini 2022-09-03 14:23:46 +02:00
parent 0ec57295b7
commit d996843f55
4 changed files with 4 additions and 4 deletions

View file

@ -55,7 +55,7 @@ static CFONT *get_default_font()
static bool check_graphic(void)
{
if (UNLIKELY(THIS == NULL))
if (THIS == NULL)
{
GB.Error("No device");
return true;

View file

@ -46,7 +46,7 @@ static int joyindex = 0;
CJOY_INFO CJOY_info = { 0 };
#define CHECK_VALID() \
if (UNLIKELY(!CJOY_info.valid)) \
if (!CJOY_info.valid) \
{ \
GB.Error("No joystick event data"); \
return; \

View file

@ -35,7 +35,7 @@
CMOUSE_INFO CMOUSE_info = { 0 };
#define CHECK_VALID() \
if (UNLIKELY(!CMOUSE_info.valid)) \
if (!CMOUSE_info.valid) \
{ \
GB.Error("No mouse event data"); \
return; \

View file

@ -348,7 +348,7 @@ void SDLfont::OpenFont(const char* file)
hSDLfont = TTF_OpenFont(file, hfontsize);
if (UNLIKELY(hSDLfont == NULL))
if (hSDLfont == NULL)
SDLerror::RaiseError(TTF_GetError());
}
#if 0