Defines | Functions

runtime.h File Reference

#include "./runtime/Diagnostics.h"
#include "./runtime/Profiler.h"

Defines

#define CHK_PTR(ptr)   CheckPointer( ptr )
#define CHK_PTR_RET(ptr, val)   do { if ( !CheckPointer( ptr ) ) return val; } while (0)

Functions

bool CheckPointer (const void *ptr)

Define Documentation

#define CHK_PTR (   ptr  )     CheckPointer( ptr )
#define CHK_PTR_RET (   ptr,
  val 
)    do { if ( !CheckPointer( ptr ) ) return val; } while (0)

Function Documentation

bool CheckPointer ( const void *  ptr  )  [inline]

Checks whether the given object is NULL. The function fires a Null-Pointer-Message to the standard logger and returns false, if the given object is NULL. The function returns true, if the given object is not NULL.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines