Replace GNU-specific ##__VA_ARGS__ with __VA_OPT__

This commit is contained in:
Nikita Lisitsa 2026-06-30 23:44:31 +03:00
parent 379b1e53a0
commit 9c76feb150

View file

@ -25,4 +25,4 @@ namespace psemek::bt
}
#define bt_assert(cond, ...) (void)(!(cond) && ::psemek::bt::assertion_failed("BT assertion failed: ", #cond, " ", ##__VA_ARGS__, " (", __FILE__, ":", __LINE__, ")"))
#define bt_assert(cond, ...) (void)(!(cond) && ::psemek::bt::assertion_failed("BT assertion failed: ", #cond, " " __VA_OPT__(,) __VA_ARGS__, " (", __FILE__, ":", __LINE__, ")"))