Skip to content

Commit

Permalink
add braces around ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
captain0xff committed Oct 25, 2024
1 parent 30e0cb2 commit e9dc9b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/testgputext.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,16 @@ typedef struct GeometryData

void check_error_bool(const bool res)
{
if (!res)
if (!res) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "%s", SDL_GetError());
}
}

void *check_error_ptr(void *ptr)
{
if (!ptr)
if (!ptr) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "%s", SDL_GetError());
}

return ptr;
}
Expand Down

0 comments on commit e9dc9b3

Please sign in to comment.