ocean.core.Verify

Utility intended as a replacement for assert to check for programming errors and sanity violations in situations when neither removing the check in -release mode nor bringing down the application by throwing an Error is acceptable.

This module must have as few import dependencies as possible so that it can be used in place of assert freely without introducing cyclic imports.

Members

Classes

SanityException
class SanityException

Indicates some internal sanity violation in the app, essentially a less fatal version of AssertError.

Functions

verify
void verify(bool ok, istring msg, istring file, int line)

Verifies that certain condition is met.

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).