mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 00:38:58 +00:00
Update TRY macro to allow for use without second argument
This commit is contained in:
@@ -19,9 +19,9 @@
|
|||||||
#define CONCAT2(x, y) DO_CONCAT2(x, y)
|
#define CONCAT2(x, y) DO_CONCAT2(x, y)
|
||||||
#define DO_CONCAT2(x, y) x##y
|
#define DO_CONCAT2(x, y) x##y
|
||||||
|
|
||||||
#define TRY(x, fail) \
|
#define TRY(x, ...) \
|
||||||
if (!(x)) { \
|
if (!(x)) { \
|
||||||
fail; \
|
__VA_ARGS__; \
|
||||||
return false; \
|
return false; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user