Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
#define VALIDATEIF (   type,
  ptr 
)    IID_##type, reinterpret_cast<P6R::P6VOID**>(static_cast<type**>(ptr))

std::nothrow

Only include this when generating documentation

COM interfaces provide many advantages, however, one weakness is the use of void pointers in getters dealing with interface pointers.

To help mitigate the absence of type safety, we have provide this macro to enforce compile time type safety when assigning interface pointers via getters. This should be used anywhere that interface ID's and interface pointer arguments are used.

if(eOk == pCom->queryInterface(VALIDATEIF(p6IMemPool.&pMemPool));
See Also
VALIDATECOMPTR()

Definition at line 55 of file p6comhlpr.h.