4#ifndef DUNE_COMMON_STDTHREAD_HH
5#define DUNE_COMMON_STDTHREAD_HH
11 void doAssertCallOnce(
const char *file,
int line,
const char *function);
34 const char *function =
nullptr)
37 [[maybe_unused]]
static const bool works
38 = (doAssertCallOnce(file,
line, function),
true);
47#define DUNE_ASSERT_CALL_ONCE() \
48 ::Dune::assertCallOnce(__FILE__, __LINE__, __func__)
constexpr GeometryType line
GeometryType representing a line.
Definition: type.hh:510
Dune namespace.
Definition: alignedallocator.hh:11
void assertCallOnce(const char *file=nullptr, int line=-1, const char *function=nullptr)
Make sure call_once() works and provide a helpful error message otherwise.
Definition: stdthread.hh:33