safeAssert

Asserts that the given condition is true.

The assertion is independent from -release, by abort()ing. Regular assertions throw an AssertError and thus require an initialized GC, which might not be the case (yet or anymore) for the startup/shutdown code in this package (called by CRT ctors/dtors etc.).

package nothrow @nogc @safe
void
safeAssert
(,
scope string msg
,
scope string file = __FILE__
,
size_t line = __LINE__
)

Meta