barretenberg
Loading...
Searching...
No Matches
src
barretenberg
common
throw_or_abort.hpp
1
#pragma once
2
#include "log.hpp"
3
#include <string>
4
5
inline
void
throw_or_abort [[noreturn]] (std::string
const
& err)
6
{
7
#ifndef __wasm__
8
throw
std::runtime_error(err);
9
#else
10
info(
"abort: "
, err);
11
std::abort();
12
#endif
13
}
Generated by
1.9.6