Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Calendar
  - Forums
  - IRC
  - Community Discord
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
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`(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.).

Copyright © 1999-2021 by the D Language Foundation | Page generated by Ddoc on Thu Mar 11 10:56:26 2021