P99

◆ P99_THROW_ASSERT

#define P99_THROW_ASSERT (   E,
  ... 
)    (void)p00_throw_call_zero(!(__VA_ARGS__), E, p00_unwind_top, P99_STRINGIFY(__LINE__), __func__, "failed assertion: ``" #__VA_ARGS__ "''")

Replacement for assert that throw a catchable exception.

The first argument E is the error code that will be passed down the line.

Remarks
As for assert such an assertion is disabled at compile time if the macro NDEBUG is defined.

Definition at line 323 of file p99_try.h.