Dynalib Utils
Static Public Member Functions | List of all members
CheckForError Class Reference

#include <CheckForError.h>

Static Public Member Functions

static bool isValidArg (bool expResult, const std::string &msg="???")
 
static bool isNotNull (void *obj, const std::string &msg="???")
 
static bool isInBounds (int index, int maxIndex, const std::string &msg="???")
 
static bool assertValidArg (bool expResult, const std::string &msg="???")
 
static bool assertNotNull (void *obj, const std::string &msg="???")
 
static bool assertInBounds (int index, int maxIndex, const std::string &msg="???")
 

Detailed Description

Define "NDEBUG" to disable all assertions

Member Function Documentation

◆ assertInBounds()

bool CheckForError::assertInBounds ( int  index,
int  maxIndex,
const std::string &  msg = "???" 
)
static

◆ assertNotNull()

bool CheckForError::assertNotNull ( void *  obj,
const std::string &  msg = "???" 
)
static

◆ assertValidArg()

bool CheckForError::assertValidArg ( bool  expResult,
const std::string &  msg = "???" 
)
static

◆ isInBounds()

bool CheckForError::isInBounds ( int  index,
int  maxIndex,
const std::string &  msg = "???" 
)
static

◆ isNotNull()

bool CheckForError::isNotNull ( void *  obj,
const std::string &  msg = "???" 
)
static

◆ isValidArg()

bool CheckForError::isValidArg ( bool  expResult,
const std::string &  msg = "???" 
)
static

The documentation for this class was generated from the following files: