Define C4_CHECK

Define Documentation

C4_CHECK(cond)

Check that a condition is true, or raise an error when not true. Unlike C4_ASSERT(), this check is not disabled in non-debug builds.

Todo:

add constexpr-compatible compile-time assert: https://akrzemi1.wordpress.com/2017/05/18/asserts-in-constexpr-functions/

See also

C4_ASSERT