kaycxx-assert
C++ assertion library
Loading...
Searching...
No Matches
assert_true.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Klaus Reimer <k@ailis.de>
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
11#include <string_view>
12
14#include <kaycxx/assert/detail/source_location.hpp>
15
16namespace kaycxx::assert {
17
28 bool actual,
29 std::string_view reason = {},
30 std::optional<std::source_location> location = KAYCXX_ASSERT_DEFAULT_SOURCE
31);
32
33} // namespace kaycxx::assert
Defines the assertion_error type.
Assertion functions and related types.
Definition assert.hpp:15
void assert_true(bool actual, std::string_view reason={}, std::optional< std::source_location > location=KAYCXX_ASSERT_DEFAULT_SOURCE)
Asserts that the argument is true.