Back to index

lightning-sunbird  0.9+nobinonly
Defines
mozXMLT.h File Reference
#include <string.h>
#include "lineterm.h"
#include "tracelog.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define XMLT_TLOG_MODULE   2
#define XMLT_ERROR   TLOG_ERROR
#define XMLT_WARNING   TLOG_WARNING
#define XMLT_LOG(procname, level, args)   TLOG_PRINT(XMLT_TLOG_MODULE,procname,level,args)
#define XMLT_IMPL_ADDREF(_class)
#define XMLT_IMPL_RELEASE(_class)

Define Documentation

Definition at line 55 of file mozXMLT.h.

#define XMLT_IMPL_ADDREF (   _class)
Value:
NS_IMETHODIMP_(nsrefcnt) _class::AddRef(void)  \
{                                              \
  NS_PRECONDITION(PRInt32(mRefCnt) >= 0, "illegal refcnt"); \
  ++mRefCnt;                                   \
  XMLT_WARNING(#_class ":AddRef, mRefCnt=%d\n", mRefCnt); \
  return mRefCnt;                              \
}

Definition at line 61 of file mozXMLT.h.

#define XMLT_IMPL_RELEASE (   _class)
Value:
NS_IMETHODIMP_(nsrefcnt) _class::Release(void)  \
{                                               \
  NS_PRECONDITION(0 != mRefCnt, "dup release"); \
  --mRefCnt;                                    \
  XMLT_WARNING(#_class ":Release, mRefCnt=%d\n", mRefCnt); \
  if (mRefCnt == 0) {                           \
    NS_DELETEXPCOM(this);                       \
    return 0;                                   \
  }                                             \
  return mRefCnt;                               \
}

Definition at line 70 of file mozXMLT.h.

#define XMLT_LOG (   procname,
  level,
  args 
)    TLOG_PRINT(XMLT_TLOG_MODULE,procname,level,args)

Definition at line 57 of file mozXMLT.h.

Definition at line 54 of file mozXMLT.h.

Definition at line 56 of file mozXMLT.h.