MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / amrex_parsererror

Function amrex_parsererror

Src/Base/Parser/AMReX_Parser_Y.cpp:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <vector>
8
9void
10amrex_parsererror (char const *s, ...)
11{
12 char print_buff[512];
13 std::va_list vl;
14 va_start(vl, s);
15 std::vsnprintf(print_buff, 512, s, vl);
16 va_end(vl);
17 throw std::runtime_error(print_buff);
18}
19
20namespace amrex {
21

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected