VSM C++ SDK
Vehicle Specific Modules SDK
debug.h File Reference

Debugging and troubleshooting helpers. More...

#include <ugcs/vsm/log.h>
#include <stdexcept>

Go to the source code of this file.

Macros

#define ASSERT_IMPL(cond_str)
 Assertion action which is done when assertion fires. More...
 
#define ASSERT(x)
 No action in release. More...
 
#define VERIFY(x, expected)   x
 Evaluate in release, but don't compare. More...
 

Detailed Description

Debugging and troubleshooting helpers.

Macro Definition Documentation

#define ASSERT (   x)

No action in release.

#define ASSERT_IMPL (   cond_str)
Value:
do { \
/* More convenient than exception since the back-trace will point to the \
* assert in the generated core dump. \
*/ \
abort(); \
} while (false)

Assertion action which is done when assertion fires.

Parameters
cond_strStringified condition expression.
#define VERIFY (   x,
  expected 
)    x

Evaluate in release, but don't compare.