Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
error_callback.hpp
Go to the documentation of this file.
1// -------------------------------------------------------//
2//
3// SHAMROCK code for hydrodynamics
4// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7//
8// -------------------------------------------------------//
9
10#pragma once
11
18
19#include <source_location>
20#include <functional>
21#include <stdexcept>
22
23namespace sham::term {
24
28 = std::function<std::invalid_argument(const char *what, std::source_location where)>;
29
30} // namespace sham::term
std::function< std::invalid_argument(const char *what, std::source_location where)> term_parse_callback_t
Callback signature for parsing error reporting (returns what, receives source location).