Skip to content

Commit 98de387

Browse files
committed
sdl2,sdl3: docuemnt SDL_CHECK
1 parent df8bd03 commit 98de387

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/video_display/sdl2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ static const struct {
152152
{'q', "quit"},
153153
};
154154

155+
/// @param cmd command be excecuted checking the return falue
156+
/// @param ... optional action
155157
#define SDL_CHECK(cmd, ...) \
156158
do { \
157159
int ret = cmd; \

src/video_display/sdl3.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ static const struct {
205205
{ 'q', "quit" },
206206
};
207207

208+
/// @param cmd command be excecuted checking the return falue
209+
/// @param ... optional action
208210
#define SDL_CHECK(cmd, ...) \
209211
do { \
210212
if (!(cmd)) { \

0 commit comments

Comments
 (0)