From e9dc9b3965730df4de12e40eed83bf14fe188af7 Mon Sep 17 00:00:00 2001 From: captain0xff Date: Fri, 25 Oct 2024 20:58:13 +0530 Subject: [PATCH] add braces around ifs --- examples/testgputext.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/testgputext.c b/examples/testgputext.c index 59176be8..d5e6e9eb 100644 --- a/examples/testgputext.c +++ b/examples/testgputext.c @@ -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; }