sdk/common/NvBlastPreprocessorInternal.h File Reference

#include "NvPreprocessor.h"
#include <limits>

Go to the source code of this file.

Defines

#define NVBLASTLL_CHECK(_expr, _logFn, _msg, _onFail)   NV_UNUSED(_logFn)
#define NVBLASTLL_CHECK_PARAMS   (NV_DEBUG || NV_CHECKED)
#define NVBLASTLL_LOG_DEBUG(_logFn, _msg)   if (_logFn != nullptr) { _logFn(NvBlastMessage::Debug, _msg, __FILE__, __LINE__); } ((void)0)
#define NVBLASTLL_LOG_ERROR(_logFn, _msg)   if (_logFn != nullptr) { _logFn(NvBlastMessage::Error, _msg, __FILE__, __LINE__); } ((void)0)
#define NVBLASTLL_LOG_INFO(_logFn, _msg)   if (_logFn != nullptr) { _logFn(NvBlastMessage::Info, _msg, __FILE__, __LINE__); } ((void)0)
#define NVBLASTLL_LOG_WARNING(_logFn, _msg)   if (_logFn != nullptr) { _logFn(NvBlastMessage::Warning, _msg, __FILE__, __LINE__); } ((void)0)
#define UINT32_MAX   (std::numeric_limits<uint32_t>::max())


Define Documentation

#define NVBLASTLL_CHECK ( _expr,
_logFn,
_msg,
_onFail   )     NV_UNUSED(_logFn)

#define NVBLASTLL_CHECK_PARAMS   (NV_DEBUG || NV_CHECKED)

Blast will check function parameters for debug and checked builds.

#define NVBLASTLL_LOG_DEBUG ( _logFn,
_msg   )     if (_logFn != nullptr) { _logFn(NvBlastMessage::Debug, _msg, __FILE__, __LINE__); } ((void)0)

#define NVBLASTLL_LOG_ERROR ( _logFn,
_msg   )     if (_logFn != nullptr) { _logFn(NvBlastMessage::Error, _msg, __FILE__, __LINE__); } ((void)0)

Macros for more convenient logging

#define NVBLASTLL_LOG_INFO ( _logFn,
_msg   )     if (_logFn != nullptr) { _logFn(NvBlastMessage::Info, _msg, __FILE__, __LINE__); } ((void)0)

#define NVBLASTLL_LOG_WARNING ( _logFn,
_msg   )     if (_logFn != nullptr) { _logFn(NvBlastMessage::Warning, _msg, __FILE__, __LINE__); } ((void)0)

#define UINT32_MAX   (std::numeric_limits<uint32_t>::max())

Convenience macro to replace deprecated UINT32_MAX