Remove useless LIKELY() and UNLIKELY() macros.
[GB.SDL] * NEW: Remove useless LIKELY() and UNLIKELY() macros.
This commit is contained in:
parent
0ec57295b7
commit
d996843f55
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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; \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue