ndtree
nd-octree data-structure and algorithms
terminate.hpp File Reference

Program termination routines. More...

Macros

#define NDTREE_TERMINATE(message, ...)
 Terminates the program. More...
 

Detailed Description

Program termination routines.

Macro Definition Documentation

#define NDTREE_TERMINATE (   message,
  ... 
)
Value:
[[ cold, noinline ]] do { \
::ndtree::fmt::print( \
stderr, "\nFATAL ERROR:\n\n message: " message "\n\n", ##__VA_ARGS__); \
std::terminate(); \
} \
while (false)
#define NDTREE_PRINT_AT(AT)
Formats a source code location.
Definition: at.hpp:31
#define NDTREE_AT_
Returns a source code locator containing the position where it is defined.
Definition: at.hpp:22

Terminates the program.

TODO: offer a way to throw an exception with the message instead

Referenced by ndtree::v1::manifold_neighbors< nd, m >::operator[]().