mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-02-19 06:38:42 +01:00
WIP
This commit is contained in:
10
src/defs.cpp
10
src/defs.cpp
@@ -1,9 +1,17 @@
|
||||
#include "aare/defs.hpp"
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
#include <fmt/core.h>
|
||||
namespace aare {
|
||||
|
||||
|
||||
void assert_failed(const std::string &msg)
|
||||
{
|
||||
fmt::print(msg);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Convert a DetectorType to a string
|
||||
* @param type DetectorType
|
||||
|
||||
Reference in New Issue
Block a user