ImFusion C++ SDK 4.5.0
ImFusion::Assert Namespace Reference

Assertion library. More...

Detailed Description

Assertion library.

See also
Assertion Library

Classes

class  ContractViolation
 Represents a violation of a contract assertion. More...

Typedefs

using HandlerFunction
 Alias for a function pointer that can be used to handle trapped assertions.

Functions

HandlerFunction debugAssertionHandler ()
 Returns the currently assigned handler function for debug asserts.
void setDebugAssertionHandler (HandlerFunction handler)
 Sets the debug assertion handler function to use.
void defaultDebugAssertionHandler (const char *condition, const char *message, const char *fileName, const char *functionName, int line)
 Handler function that is used by default to handle trapped debug assertions.
HandlerFunction handler ()
void setHandler (HandlerFunction handler)
 Sets the assertion handler function to use.
void defaultHandler (const char *condition, const char *message, const char *fileName, const char *functionName, int line)
 Handler function that is used by default to handle trapped assertions.
HandlerFunction contractAssertionHandler ()
 Returns the currently assigned handler function for contract asserts.
void setContractAssertionHandler (HandlerFunction handler)
 Sets the contract assertion handler function to use.
void defaultContractAssertionHandler (const char *condition, const char *message, const char *fileName, const char *functionName, int line)
 Handler function that is used by default to handle trapped contract assertions.
IMFUSION_ENABLE_WARNING_MSVC void throwContractViolation (const char *condition, const char *message, const char *fileName, const char *funcName, int line)

Function Documentation

◆ throwContractViolation()

IMFUSION_ENABLE_WARNING_MSVC void ImFusion::Assert::throwContractViolation ( const char * condition,
const char * message,
const char * fileName,
const char * funcName,
int line )
Exceptions
ContractViolationas only purpose of this friend function.
Search Tab / S to search, Esc to close