4#ifndef TETL_EXCEPTION_RAISE_HPP
5#define TETL_EXCEPTION_RAISE_HPP
7#include <etl/_config/all.hpp>
9#include <etl/_cassert/assert.hpp>
10#include <etl/_exception/exception.hpp>
11#include <etl/_source_location/source_location.hpp>
15template <
typename Exception>
19#if defined(TETL_ENABLE_CUSTOM_EXCEPTION_HANDLER)
21 etl::exception_handler(Exception{msg});
25 static_cast<
int>(loc.line()),
28 Exception{msg}.what(),
Definition adjacent_find.hpp:9
TETL_NO_INLINE TETL_COLD auto raise(char const *msg, etl::source_location const loc=etl::source_location::current()) -> void
Definition raise.hpp:17
A class representing information about the source code, such as file names, line numbers,...
Definition source_location.hpp:20
static consteval auto current(uint_least32_t const line=TETL_BUILTIN_LINE(), uint_least32_t const column=TETL_BUILTIN_COLUMN(), char const *const file=TETL_BUILTIN_FILE(), char const *const function=TETL_BUILTIN_FUNCTION()) noexcept -> source_location
Definition source_location.hpp:21