mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-08 04:18:14 +00:00
Fix warnings 'macro argument should be enclosed in parentheses'
This commit is contained in:
@@ -112,14 +112,14 @@ SDLTest_CommonCreateState(char **argv, Uint32 flags)
|
||||
return state;
|
||||
}
|
||||
|
||||
#define SEARCHARG(dim) \
|
||||
while (*dim && *dim != ',') { \
|
||||
++dim; \
|
||||
} \
|
||||
if (!*dim) { \
|
||||
return -1; \
|
||||
} \
|
||||
*dim++ = '\0';
|
||||
#define SEARCHARG(dim) \
|
||||
while (*(dim) && *(dim) != ',') { \
|
||||
++(dim); \
|
||||
} \
|
||||
if (!*(dim)) { \
|
||||
return -1; \
|
||||
} \
|
||||
*(dim)++ = '\0';
|
||||
|
||||
int SDLTest_CommonArg(SDLTest_CommonState *state, int index)
|
||||
{
|
||||
|
Reference in New Issue
Block a user