RflySimSDK v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_Assert.h 文件参考

Header for assert macros. 更多...

#include <assert.h>
+ vrpn_Assert.h 的引用(Include)关系图:
+ 此图展示该文件被哪些文件直接或间接地引用了:

浏览该文件的源代码.

宏定义

#define VRPN_CURRENT_FUNCTION   "(unknown)"
 Expands to the special preprocessor macro providing a useful description of the current function, where available.
 
#define VRPN_ASSERT(expr)   assert(expr)
 Asserts the truth of expr according to the configuration of vrpn_Assert.h at the time of inclusion. If not asserting, does not evaluate expression.
 
#define VRPN_ASSERT_MSG(expr, msg)   assert((expr) && (msg))
 Like VRPN_ASSERT(expr) but allows specification of a message to be included in the case of a failed assertion.
 
#define VRPN_VERIFY(expr)   VRPN_ASSERT(expr)
 Typically forwards to VRPN_ASSERT, but in cases where VRPN_ASSERT would expand to nothing (not evaluating the expression), VRPN_VERIFY evaluates the expression but discards the result.
 
#define VRPN_VERIFY_MSG(expr, msg)   VRPN_ASSERT_MSG(expr,msg)
 Like VRPN_VERIFY(expr) but allows specification of a message to be included in the case of a failed assertion.
 

详细描述

Header for assert macros.

Include guards intentionally omitted, to allow re-inclusion with different options.

Assertions can either do nothing, call an assert handler on failure that prints details to stderr, or call your compiler system's assert.

  • Define VRPN_DISABLE_ASSERTS before including this file to forcibly disable all asserts.
  • By default, debug builds will use the standard assert method, and release builds will do nothing.
  • To unconditionally (debug and release) enable the custom assert handler, define VRPN_ENABLE_ASSERT_HANDLER
  • To enable the custom assert handler for debug builds only (leaving asserts as no-ops in release builds), define VRPN_ENABLE_ASSERT_DEBUG_HANDLER
日期
2015
作者
Ryan Pavlik (incorporating some code modified from Boost) Sensics, Inc. http://sensics.com/osvr

宏定义说明

◆ VRPN_ASSERT

#define VRPN_ASSERT ( expr)    assert(expr)

Asserts the truth of expr according to the configuration of vrpn_Assert.h at the time of inclusion. If not asserting, does not evaluate expression.

◆ VRPN_ASSERT_MSG

#define VRPN_ASSERT_MSG ( expr,
msg )   assert((expr) && (msg))

Like VRPN_ASSERT(expr) but allows specification of a message to be included in the case of a failed assertion.

◆ VRPN_CURRENT_FUNCTION

#define VRPN_CURRENT_FUNCTION   "(unknown)"

Expands to the special preprocessor macro providing a useful description of the current function, where available.

◆ VRPN_VERIFY

#define VRPN_VERIFY ( expr)    VRPN_ASSERT(expr)

Typically forwards to VRPN_ASSERT, but in cases where VRPN_ASSERT would expand to nothing (not evaluating the expression), VRPN_VERIFY evaluates the expression but discards the result.

◆ VRPN_VERIFY_MSG

#define VRPN_VERIFY_MSG ( expr,
msg )   VRPN_ASSERT_MSG(expr,msg)

Like VRPN_VERIFY(expr) but allows specification of a message to be included in the case of a failed assertion.