mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Better
This commit is contained in:
parent
3149111589
commit
ca282ab451
@ -120,9 +120,9 @@
|
||||
#define chassert_2(x, comment, ...) (void)sizeof(!(x))
|
||||
#define UNREACHABLE() __builtin_unreachable()
|
||||
#endif
|
||||
#define CHASSERT_IMPL(_1,_2, N,...) N(_1, _2)
|
||||
#define CHASSERT_IMPL_(tuple) CHASSERT_IMPL tuple
|
||||
#define chassert(...) CHASSERT_IMPL_((__VA_ARGS__, chassert_2, chassert_1))
|
||||
#define CHASSERT_DISPATCH(_1,_2, N,...) N(_1, _2)
|
||||
#define CHASSERT_INVOKE(tuple) CHASSERT_DISPATCH tuple
|
||||
#define chassert(...) CHASSERT_INVOKE((__VA_ARGS__, chassert_2, chassert_1))
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user