Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

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