FBX C++ API Reference
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fbxdebug.h File Reference

File Description

Debugging macros and functions.

All macros and functions are removed in release builds. To enable asserts, a debug build is required as well as the environment variable "FBXSDK_ASSERT" set to 1 is also required. By default, assertions will pop-up a window. It is possible to disable the pop-up on the Windows platform by calling the following code:

_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG);

Definition in file fbxdebug.h.

Macros

#define FBXSDK_ASSERT_ENVSTR   "FBXSDK_ASSERT"
 If this environment variable is set to 1, the FBX SDK will assert in debug builds. More...
 

Typedefs

typedef void(* FbxAssertProc) (const char *pFileName, const char *pFunctionName, const unsigned int pLineNumber, const char *pMessage)
 The assertion procedure signature. More...
 

Functions

void FbxAssertSetProc (FbxAssertProc pAssertProc)
 Change the procedure used when assertion occurs. More...
 
void FbxAssertSetDefaultProc ()
 Change the procedure back to the default one. More...
 

Macro Definition Documentation

◆ FBXSDK_ASSERT_ENVSTR

#define FBXSDK_ASSERT_ENVSTR   "FBXSDK_ASSERT"

If this environment variable is set to 1, the FBX SDK will assert in debug builds.

Definition at line 30 of file fbxdebug.h.

Typedef Documentation

◆ FbxAssertProc

typedef void(* FbxAssertProc) (const char *pFileName, const char *pFunctionName, const unsigned int pLineNumber, const char *pMessage)

The assertion procedure signature.

If a different assertion procedure must be provided, it should have this signature.

Parameters
pFileNameThe file name where the assertion occurred.
pFunctionNameThe function name where the assertion occurred.
pLineNumberThe line number in the file where the assertion occurred.
pMessageThe message to display when the assertion occurs.

Definition at line 37 of file fbxdebug.h.

Function Documentation

◆ FbxAssertSetProc()

void FbxAssertSetProc ( FbxAssertProc  pAssertProc)

Change the procedure used when assertion occurs.

Parameters
pAssertProcThe procedure to be called when assertions occurs.

◆ FbxAssertSetDefaultProc()

void FbxAssertSetDefaultProc ( )

Change the procedure back to the default one.

Go to the source code of this file.