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
Source rt/util/utility.d
- package(rt) nothrow @nogc @safe void
safeAssert
(boolcondition
, scope stringmsg
, scope stringfile
= __FILE__, size_tline
= __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.).
Copyright © 1999-2024 by the D Language Foundation | Page generated by
Ddoc on Sat Nov 9 19:10:03 2024