SuperDex Physics C++ API
Loading...
Searching...
No Matches
debug.h File Reference
#include <mochi_core/mochi_config.h>
#include <mochi_core/utils/log.h>
#include <functional>
#include "debug_inl.h"

Go to the source code of this file.

Namespaces

namespace  superdex

Macros

#define MOCHI_ASSERT(condition_without_side_effects, ...)
#define MOCHI_ASSERT_EIGEN()
#define MOCHI_ASSERT_VERBOSE(condition_without_side_effects, ...)
#define MOCHI_NOT_IMPLEMENTED()

Typedefs

using superdex::OnAssertFn
 Callback invoked when an assertion fails.

Functions

bool superdex::IsDebuggerAttached ()
 Return true if we can detect that a debugger is attached to this process.

Macro Definition Documentation

◆ MOCHI_ASSERT

#define MOCHI_ASSERT ( condition_without_side_effects,
... )
Value:
MOCHI_ASSERT_IMPL(condition_without_side_effects __VA_OPT__(, )##__VA_ARGS__)

Definition at line 81 of file debug.h.

◆ MOCHI_ASSERT_EIGEN

#define MOCHI_ASSERT_EIGEN ( )
Value:
"This feature requires Eigen. To enable, add the Eigen dependency to your build configuration and define MOCHI_USE_EIGEN=1.")
#define MOCHI_ASSERT(condition_without_side_effects,...)
Definition debug.h:81
#define MOCHI_USE_EIGEN

Definition at line 119 of file debug.h.

◆ MOCHI_ASSERT_VERBOSE

#define MOCHI_ASSERT_VERBOSE ( condition_without_side_effects,
... )
Value:
MOCHI_ASSERT_IMPL(condition_without_side_effects __VA_OPT__(, )##__VA_ARGS__)

Definition at line 102 of file debug.h.

◆ MOCHI_NOT_IMPLEMENTED

#define MOCHI_NOT_IMPLEMENTED ( )
Value:
MOCHI_ASSERT(false, "%s not implemented", __FUNCTION__)

Definition at line 113 of file debug.h.