Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

#define LogObjRefCnt ( pObj   ) 


do { \
        int refc = (pObj)->AddRef(); \
        LogFlow((#pObj "{%p}.refCnt=%d\n", (pObj), refc - 1)); \
        (pObj)->Release(); \
    } while (0)
Helper macro to print the current reference count of the given COM object to the log file.

pObj Pointer to the object in question (must be a pointer to an IUnknown subclass or simply define COM-style AddRef() and Release() methods)
Use it only for temporary debugging. It leaves dummy code even if logging is disabled.

Definition at line 768 of file log.h.

Generated by  Doxygen 1.6.0   Back to index