Stun Server  Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
chkmacros.h File Reference
#include "hresult.h"
Include dependency graph for chkmacros.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Chk(expr)
 
#define ChkIf(expr, hrerror)
 
#define ChkA(expr)
 
#define ChkIfA(expr, hrerror)
 

Functions

template<typename T >
HRESULT CheckCore (const T t)
 
template<typename T >
bool CheckIfCore (const T t)
 
template<>
HRESULT CheckCore< HRESULT > (const HRESULT t)
 
template<>
bool CheckIfCore< bool > (const bool t)
 

Macro Definition Documentation

#define Chk (   expr)
Value:
{ \
((void)hr); \
hr = CheckCore((expr)); \
if (FAILED(hr)) \
{ \
goto Cleanup; \
} \
}
HRESULT CheckCore(const T t)
Definition: chkmacros.h:26
#define FAILED(hr)
Definition: hresult.h:29

Definition at line 53 of file chkmacros.h.

#define ChkA (   expr)
Value:
{ \
((void)hr); \
hr = CheckCore((expr)); \
if (FAILED(hr)) \
{ \
ASSERT(false); \
goto Cleanup; \
} \
}
#define ASSERT(expr)
HRESULT CheckCore(const T t)
Definition: chkmacros.h:26
#define FAILED(hr)
Definition: hresult.h:29

Definition at line 73 of file chkmacros.h.

#define ChkIf (   expr,
  hrerror 
)
Value:
{ \
((void)hr); \
if (CheckIfCore((expr))) \
{ \
hr = (hrerror); \
goto Cleanup; \
} \
}
bool CheckIfCore(const T t)
Definition: chkmacros.h:33

Definition at line 63 of file chkmacros.h.

#define ChkIfA (   expr,
  hrerror 
)
Value:
{ \
((void)hr); \
if (CheckIfCore((expr))) \
{ \
ASSERT(false); \
hr = (hrerror); \
goto Cleanup; \
} \
}
#define ASSERT(expr)
bool CheckIfCore(const T t)
Definition: chkmacros.h:33

Definition at line 84 of file chkmacros.h.

Function Documentation

template<typename T >
HRESULT CheckCore ( const T  t)
inline

Definition at line 26 of file chkmacros.h.

template<>
HRESULT CheckCore< HRESULT > ( const HRESULT  t)
inline

Definition at line 41 of file chkmacros.h.

template<typename T >
bool CheckIfCore ( const T  t)
inline

Definition at line 33 of file chkmacros.h.

template<>
bool CheckIfCore< bool > ( const bool  t)
inline

Definition at line 47 of file chkmacros.h.