rt.util.utility

Contains various utility functions used by the runtime implementation.

License:
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)
Authors:
Jacob Carlborg
Source
rt/util/utility.d
package(rt) nothrow @nogc @safe void safeAssert(bool condition, scope string msg, scope string file = __FILE__, size_t line = __LINE__);

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.).

© 1999–2021 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/rt_util_utility.html