mirror of
https://github.com/wassname/ray.git
synced 2026-07-06 05:16:30 +08:00
Remove semicolon in macro. (#59)
This commit is contained in:
committed by
Philipp Moritz
parent
7237ec4124
commit
1f9fce8e53
+2
-2
@@ -64,14 +64,14 @@
|
||||
const int calls = backtrace(buffer, sizeof(buffer) / sizeof(void *)); \
|
||||
backtrace_symbols_fd(buffer, calls, 1); \
|
||||
exit(-1); \
|
||||
} while (0);
|
||||
} while (0)
|
||||
#else
|
||||
#define LOG_FATAL(M, ...) \
|
||||
do { \
|
||||
fprintf(stderr, "[FATAL] (%s:%d) " M "\n", __FILE__, __LINE__, \
|
||||
##__VA_ARGS__); \
|
||||
exit(-1); \
|
||||
} while (0);
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#define CHECKM(COND, M, ...) \
|
||||
|
||||
Reference in New Issue
Block a user