K-HHC
C++ Header-only Library for Hexahexacontadecimal Encoding/Decoding
Loading...
Searching...
No Matches
Functions
hhc::detail Namespace Reference

Functions

void flush_coverage_profile ()
 
HHC_NO_PROFILE void print_stack_trace ()
 Print stack trace (debug builds only)
 
HHC_NO_PROFILE void assertion_failed (const char *expression, const char *file, const int line, const char *function)
 Handle assertion failure.
 

Function Documentation

◆ assertion_failed()

HHC_NO_PROFILE void hhc::detail::assertion_failed ( const char *  expression,
const char *  file,
const int  line,
const char *  function 
)
inline

Handle assertion failure.

In debug builds: prints detailed error message with stack trace and aborts In release builds: invokes undefined behavior trap (optimizer hint)

Parameters
expressionThe expression that failed (as string)
fileSource file name
lineLine number
functionFunction name
Here is the call graph for this function:

◆ flush_coverage_profile()

void hhc::detail::flush_coverage_profile ( )
inline
Here is the caller graph for this function:

◆ print_stack_trace()

HHC_NO_PROFILE void hhc::detail::print_stack_trace ( )
inline

Print stack trace (debug builds only)

Here is the caller graph for this function: