/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. #ifndef __gen_nsIDebug_h__
  5. #define __gen_nsIDebug_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIDebug */
  14. #define NS_IDEBUG_IID_STR "3bf0c3d7-3bd9-4cf2-a971-33572c503e1e"
  15. #define NS_IDEBUG_IID \
  16. {0x3bf0c3d7, 0x3bd9, 0x4cf2, \
  17. { 0xa9, 0x71, 0x33, 0x57, 0x2c, 0x50, 0x3e, 0x1e }}
  18. /**
  19. * @status DEPRECATED Replaced by the NS_DebugBreak function.
  20. * @status FROZEN
  21. */
  22. class NS_NO_VTABLE NS_SCRIPTABLE nsIDebug : public nsISupports {
  23. public:
  24. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDEBUG_IID)
  25. /* void assertion (in string aStr, in string aExpr, in string aFile, in long aLine); */
  26. NS_SCRIPTABLE NS_IMETHOD Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine) = 0;
  27. /* void warning (in string aStr, in string aFile, in long aLine); */
  28. NS_SCRIPTABLE NS_IMETHOD Warning(const char *aStr, const char *aFile, PRInt32 aLine) = 0;
  29. /* void break (in string aFile, in long aLine); */
  30. NS_SCRIPTABLE NS_IMETHOD Break(const char *aFile, PRInt32 aLine) = 0;
  31. /* void abort (in string aFile, in long aLine); */
  32. NS_SCRIPTABLE NS_IMETHOD Abort(const char *aFile, PRInt32 aLine) = 0;
  33. };
  34. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDebug, NS_IDEBUG_IID)
  35. /* Use this macro when declaring classes that implement this interface. */
  36. #define NS_DECL_NSIDEBUG \
  37. NS_SCRIPTABLE NS_IMETHOD Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine); \
  38. NS_SCRIPTABLE NS_IMETHOD Warning(const char *aStr, const char *aFile, PRInt32 aLine); \
  39. NS_SCRIPTABLE NS_IMETHOD Break(const char *aFile, PRInt32 aLine); \
  40. NS_SCRIPTABLE NS_IMETHOD Abort(const char *aFile, PRInt32 aLine);
  41. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  42. #define NS_FORWARD_NSIDEBUG(_to) \
  43. NS_SCRIPTABLE NS_IMETHOD Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine) { return _to Assertion(aStr, aExpr, aFile, aLine); } \
  44. NS_SCRIPTABLE NS_IMETHOD Warning(const char *aStr, const char *aFile, PRInt32 aLine) { return _to Warning(aStr, aFile, aLine); } \
  45. NS_SCRIPTABLE NS_IMETHOD Break(const char *aFile, PRInt32 aLine) { return _to Break(aFile, aLine); } \
  46. NS_SCRIPTABLE NS_IMETHOD Abort(const char *aFile, PRInt32 aLine) { return _to Abort(aFile, aLine); }
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  48. #define NS_FORWARD_SAFE_NSIDEBUG(_to) \
  49. 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); } \
  50. NS_SCRIPTABLE NS_IMETHOD Warning(const char *aStr, const char *aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Warning(aStr, aFile, aLine); } \
  51. NS_SCRIPTABLE NS_IMETHOD Break(const char *aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Break(aFile, aLine); } \
  52. NS_SCRIPTABLE NS_IMETHOD Abort(const char *aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(aFile, aLine); }
  53. #if 0
  54. /* Use the code below as a template for the implementation class for this interface. */
  55. /* Header file */
  56. class nsDebug : public nsIDebug
  57. {
  58. public:
  59. NS_DECL_ISUPPORTS
  60. NS_DECL_NSIDEBUG
  61. nsDebug();
  62. private:
  63. ~nsDebug();
  64. protected:
  65. /* additional members */
  66. };
  67. /* Implementation file */
  68. NS_IMPL_ISUPPORTS1(nsDebug, nsIDebug)
  69. nsDebug::nsDebug()
  70. {
  71. /* member initializers and constructor code */
  72. }
  73. nsDebug::~nsDebug()
  74. {
  75. /* destructor code */
  76. }
  77. /* void assertion (in string aStr, in string aExpr, in string aFile, in long aLine); */
  78. NS_IMETHODIMP nsDebug::Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine)
  79. {
  80. return NS_ERROR_NOT_IMPLEMENTED;
  81. }
  82. /* void warning (in string aStr, in string aFile, in long aLine); */
  83. NS_IMETHODIMP nsDebug::Warning(const char *aStr, const char *aFile, PRInt32 aLine)
  84. {
  85. return NS_ERROR_NOT_IMPLEMENTED;
  86. }
  87. /* void break (in string aFile, in long aLine); */
  88. NS_IMETHODIMP nsDebug::Break(const char *aFile, PRInt32 aLine)
  89. {
  90. return NS_ERROR_NOT_IMPLEMENTED;
  91. }
  92. /* void abort (in string aFile, in long aLine); */
  93. NS_IMETHODIMP nsDebug::Abort(const char *aFile, PRInt32 aLine)
  94. {
  95. return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97. /* End of implementation class template. */
  98. #endif
  99. #endif /* __gen_nsIDebug_h__ */