PageRenderTime 42ms CodeModel.GetById 19ms app.highlight 15ms RepoModel.GetById 1ms app.codeStats 1ms

/gecko_api/include/nsIDebug.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 131 lines | 72 code | 32 blank | 27 comment | 0 complexity | 5a2ee9c392cbc4280d0a1cf1314a4495 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/xpcom/base/nsIDebug.idl
  3 */
  4
  5#ifndef __gen_nsIDebug_h__
  6#define __gen_nsIDebug_h__
  7
  8
  9#ifndef __gen_nsISupports_h__
 10#include "nsISupports.h"
 11#endif
 12
 13/* For IDL files that don't want to include root IDL files. */
 14#ifndef NS_NO_VTABLE
 15#define NS_NO_VTABLE
 16#endif
 17
 18/* starting interface:    nsIDebug */
 19#define NS_IDEBUG_IID_STR "3bf0c3d7-3bd9-4cf2-a971-33572c503e1e"
 20
 21#define NS_IDEBUG_IID \
 22  {0x3bf0c3d7, 0x3bd9, 0x4cf2, \
 23    { 0xa9, 0x71, 0x33, 0x57, 0x2c, 0x50, 0x3e, 0x1e }}
 24
 25/**
 26 * @status DEPRECATED  Replaced by the NS_DebugBreak function.
 27 * @status FROZEN
 28 */
 29class NS_NO_VTABLE NS_SCRIPTABLE nsIDebug : public nsISupports {
 30 public: 
 31
 32  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDEBUG_IID)
 33
 34  /* void assertion (in string aStr, in string aExpr, in string aFile, in long aLine); */
 35  NS_SCRIPTABLE NS_IMETHOD Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine) = 0;
 36
 37  /* void warning (in string aStr, in string aFile, in long aLine); */
 38  NS_SCRIPTABLE NS_IMETHOD Warning(const char *aStr, const char *aFile, PRInt32 aLine) = 0;
 39
 40  /* void break (in string aFile, in long aLine); */
 41  NS_SCRIPTABLE NS_IMETHOD Break(const char *aFile, PRInt32 aLine) = 0;
 42
 43  /* void abort (in string aFile, in long aLine); */
 44  NS_SCRIPTABLE NS_IMETHOD Abort(const char *aFile, PRInt32 aLine) = 0;
 45
 46};
 47
 48  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDebug, NS_IDEBUG_IID)
 49
 50/* Use this macro when declaring classes that implement this interface. */
 51#define NS_DECL_NSIDEBUG \
 52  NS_SCRIPTABLE NS_IMETHOD Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine); \
 53  NS_SCRIPTABLE NS_IMETHOD Warning(const char *aStr, const char *aFile, PRInt32 aLine); \
 54  NS_SCRIPTABLE NS_IMETHOD Break(const char *aFile, PRInt32 aLine); \
 55  NS_SCRIPTABLE NS_IMETHOD Abort(const char *aFile, PRInt32 aLine); 
 56
 57/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 58#define NS_FORWARD_NSIDEBUG(_to) \
 59  NS_SCRIPTABLE NS_IMETHOD Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine) { return _to Assertion(aStr, aExpr, aFile, aLine); } \
 60  NS_SCRIPTABLE NS_IMETHOD Warning(const char *aStr, const char *aFile, PRInt32 aLine) { return _to Warning(aStr, aFile, aLine); } \
 61  NS_SCRIPTABLE NS_IMETHOD Break(const char *aFile, PRInt32 aLine) { return _to Break(aFile, aLine); } \
 62  NS_SCRIPTABLE NS_IMETHOD Abort(const char *aFile, PRInt32 aLine) { return _to Abort(aFile, aLine); } 
 63
 64/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 65#define NS_FORWARD_SAFE_NSIDEBUG(_to) \
 66  NS_SCRIPTABLE NS_IMETHOD Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Assertion(aStr, aExpr, aFile, aLine); } \
 67  NS_SCRIPTABLE NS_IMETHOD Warning(const char *aStr, const char *aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Warning(aStr, aFile, aLine); } \
 68  NS_SCRIPTABLE NS_IMETHOD Break(const char *aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Break(aFile, aLine); } \
 69  NS_SCRIPTABLE NS_IMETHOD Abort(const char *aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(aFile, aLine); } 
 70
 71#if 0
 72/* Use the code below as a template for the implementation class for this interface. */
 73
 74/* Header file */
 75class nsDebug : public nsIDebug
 76{
 77public:
 78  NS_DECL_ISUPPORTS
 79  NS_DECL_NSIDEBUG
 80
 81  nsDebug();
 82
 83private:
 84  ~nsDebug();
 85
 86protected:
 87  /* additional members */
 88};
 89
 90/* Implementation file */
 91NS_IMPL_ISUPPORTS1(nsDebug, nsIDebug)
 92
 93nsDebug::nsDebug()
 94{
 95  /* member initializers and constructor code */
 96}
 97
 98nsDebug::~nsDebug()
 99{
100  /* destructor code */
101}
102
103/* void assertion (in string aStr, in string aExpr, in string aFile, in long aLine); */
104NS_IMETHODIMP nsDebug::Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine)
105{
106    return NS_ERROR_NOT_IMPLEMENTED;
107}
108
109/* void warning (in string aStr, in string aFile, in long aLine); */
110NS_IMETHODIMP nsDebug::Warning(const char *aStr, const char *aFile, PRInt32 aLine)
111{
112    return NS_ERROR_NOT_IMPLEMENTED;
113}
114
115/* void break (in string aFile, in long aLine); */
116NS_IMETHODIMP nsDebug::Break(const char *aFile, PRInt32 aLine)
117{
118    return NS_ERROR_NOT_IMPLEMENTED;
119}
120
121/* void abort (in string aFile, in long aLine); */
122NS_IMETHODIMP nsDebug::Abort(const char *aFile, PRInt32 aLine)
123{
124    return NS_ERROR_NOT_IMPLEMENTED;
125}
126
127/* End of implementation class template. */
128#endif
129
130
131#endif /* __gen_nsIDebug_h__ */