mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-17 02:08:27 +00:00
Fix warnings 'macro argument should be enclosed in parentheses'
This commit is contained in:
parent
8cafde5ecc
commit
af5bda5ef3
10 changed files with 58 additions and 58 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue