Fix assertion code so its constexpr friendly

Description

// fix macros like below with if constexpr() so
Require/Ensure () can be done in constexpr functions
#define Ensure(c) (!!(c) || (Stroika::Foundation:ebug:rivate_::Assertion_Failure_Handler_ ("Ensure", #c, _FILE_, _LINE, ASSERT_PRIVATE_ENCLOSING_FUNCTION_NAME), false))

maybe rewrite is if constexpr (c) { }
but then it cannot be used in an expression (which is needed for some queer things like mem-initialzizers.

MAYBE new assert feature in C++ 20 is better and worth just waiiting for.

Status

Assignee

Lewis Pringle

Reporter

Lewis Pringle

Labels

None

Components

Priority

Medium
Configure