Medusa  1.1
Coordinate Free Mehless Method implementation
mm::assert_internal Namespace Reference

Detailed Description

Namespace holding custom assert implementation.

Functions

bool assert_handler_implementation (const char *condition, const char *file, const char *func_name, int line, const char *message, tfm::FormatListRef format_list)
 Actual assert implementation. More...
 
template<typename... Args>
bool assert_handler (const char *condition, const char *file, const char *func_name, int line, const char *message, const Args &... args)
 Assert handler that unpacks varargs. More...
 

Function Documentation

◆ assert_handler()

template<typename... Args>
bool mm::assert_internal::assert_handler ( const char *  condition,
const char *  file,
const char *  func_name,
int  line,
const char *  message,
const Args &...  args 
)

Assert handler that unpacks varargs.

Definition at line 54 of file assert.hpp.

◆ assert_handler_implementation()

bool mm::assert_internal::assert_handler_implementation ( const char *  condition,
const char *  file,
const char *  func_name,
int  line,
const char *  message,
tfm::FormatListRef  format_list 
)

Actual assert implementation.

Parameters
conditionCondition to test, e.g. n > 0.
fileFile where the assertion failed.
func_nameFunction name where the assertion failed.
lineLine on which the assertion failed.
messageMessage as specified in the assert_msg macro.
format_listList of format field values to pass to tinyformat::format function.

Definition at line 12 of file assert.cpp.