mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-02 16:49:04 +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 DO_CONCAT2(x, y) x##y
|
||||
|
||||
#define TRY(x, fail) \
|
||||
#define TRY(x, ...) \
|
||||
if (!(x)) { \
|
||||
fail; \
|
||||
__VA_ARGS__; \
|
||||
return false; \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user