Fix the issue of incorrect macro definition IFCALLRESULT

This commit is contained in:
2fly2 2023-08-12 15:01:30 +08:00 committed by akallabeth
parent 8ec4d20616
commit 553d964d8c

View File

@ -92,7 +92,8 @@
}); \
})
#else
#define IFCALLRESULT(_default_return, _cb, ...) (_cb != NULL) ? _cb(__VA_ARGS__) : (_default_return)
#define IFCALLRESULT(_default_return, _cb, ...) \
((_cb != NULL) ? _cb(__VA_ARGS__) : (_default_return))
#endif
#ifdef __GNUC__