Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDebug2.idl
3 : */
4 :
5 : #ifndef __gen_nsIDebug2_h__
6 : #define __gen_nsIDebug2_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: nsIDebug2 */
19 : #define NS_IDEBUG2_IID_STR "9641dc15-10fb-42e3-a285-18be90a5c10b"
20 :
21 : #define NS_IDEBUG2_IID \
22 : {0x9641dc15, 0x10fb, 0x42e3, \
23 : { 0xa2, 0x85, 0x18, 0xbe, 0x90, 0xa5, 0xc1, 0x0b }}
24 :
25 0 : class NS_NO_VTABLE nsIDebug2 : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDEBUG2_IID)
29 :
30 : /* readonly attribute boolean isDebugBuild; */
31 : NS_IMETHOD GetIsDebugBuild(bool *aIsDebugBuild) = 0;
32 :
33 : /* readonly attribute long assertionCount; */
34 : NS_IMETHOD GetAssertionCount(int32_t *aAssertionCount) = 0;
35 :
36 : /* readonly attribute bool isDebuggerAttached; */
37 : NS_IMETHOD GetIsDebuggerAttached(bool *aIsDebuggerAttached) = 0;
38 :
39 : /* void assertion (in string aStr, in string aExpr, in string aFile, in long aLine); */
40 : NS_IMETHOD Assertion(const char * aStr, const char * aExpr, const char * aFile, int32_t aLine) = 0;
41 :
42 : /* void warning (in string aStr, in string aFile, in long aLine); */
43 : NS_IMETHOD Warning(const char * aStr, const char * aFile, int32_t aLine) = 0;
44 :
45 : /* void break (in string aFile, in long aLine); */
46 : NS_IMETHOD Break(const char * aFile, int32_t aLine) = 0;
47 :
48 : /* void abort (in string aFile, in long aLine); */
49 : NS_IMETHOD Abort(const char * aFile, int32_t aLine) = 0;
50 :
51 : /* void rustPanic (in string aMessage); */
52 : NS_IMETHOD RustPanic(const char * aMessage) = 0;
53 :
54 : };
55 :
56 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDebug2, NS_IDEBUG2_IID)
57 :
58 : /* Use this macro when declaring classes that implement this interface. */
59 : #define NS_DECL_NSIDEBUG2 \
60 : NS_IMETHOD GetIsDebugBuild(bool *aIsDebugBuild) override; \
61 : NS_IMETHOD GetAssertionCount(int32_t *aAssertionCount) override; \
62 : NS_IMETHOD GetIsDebuggerAttached(bool *aIsDebuggerAttached) override; \
63 : NS_IMETHOD Assertion(const char * aStr, const char * aExpr, const char * aFile, int32_t aLine) override; \
64 : NS_IMETHOD Warning(const char * aStr, const char * aFile, int32_t aLine) override; \
65 : NS_IMETHOD Break(const char * aFile, int32_t aLine) override; \
66 : NS_IMETHOD Abort(const char * aFile, int32_t aLine) override; \
67 : NS_IMETHOD RustPanic(const char * aMessage) override;
68 :
69 : /* Use this macro when declaring the members of this interface when the
70 : class doesn't implement the interface. This is useful for forwarding. */
71 : #define NS_DECL_NON_VIRTUAL_NSIDEBUG2 \
72 : nsresult GetIsDebugBuild(bool *aIsDebugBuild); \
73 : nsresult GetAssertionCount(int32_t *aAssertionCount); \
74 : nsresult GetIsDebuggerAttached(bool *aIsDebuggerAttached); \
75 : nsresult Assertion(const char * aStr, const char * aExpr, const char * aFile, int32_t aLine); \
76 : nsresult Warning(const char * aStr, const char * aFile, int32_t aLine); \
77 : nsresult Break(const char * aFile, int32_t aLine); \
78 : nsresult Abort(const char * aFile, int32_t aLine); \
79 : nsresult RustPanic(const char * aMessage);
80 :
81 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
82 : #define NS_FORWARD_NSIDEBUG2(_to) \
83 : NS_IMETHOD GetIsDebugBuild(bool *aIsDebugBuild) override { return _to GetIsDebugBuild(aIsDebugBuild); } \
84 : NS_IMETHOD GetAssertionCount(int32_t *aAssertionCount) override { return _to GetAssertionCount(aAssertionCount); } \
85 : NS_IMETHOD GetIsDebuggerAttached(bool *aIsDebuggerAttached) override { return _to GetIsDebuggerAttached(aIsDebuggerAttached); } \
86 : NS_IMETHOD Assertion(const char * aStr, const char * aExpr, const char * aFile, int32_t aLine) override { return _to Assertion(aStr, aExpr, aFile, aLine); } \
87 : NS_IMETHOD Warning(const char * aStr, const char * aFile, int32_t aLine) override { return _to Warning(aStr, aFile, aLine); } \
88 : NS_IMETHOD Break(const char * aFile, int32_t aLine) override { return _to Break(aFile, aLine); } \
89 : NS_IMETHOD Abort(const char * aFile, int32_t aLine) override { return _to Abort(aFile, aLine); } \
90 : NS_IMETHOD RustPanic(const char * aMessage) override { return _to RustPanic(aMessage); }
91 :
92 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
93 : #define NS_FORWARD_SAFE_NSIDEBUG2(_to) \
94 : NS_IMETHOD GetIsDebugBuild(bool *aIsDebugBuild) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDebugBuild(aIsDebugBuild); } \
95 : NS_IMETHOD GetAssertionCount(int32_t *aAssertionCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAssertionCount(aAssertionCount); } \
96 : NS_IMETHOD GetIsDebuggerAttached(bool *aIsDebuggerAttached) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsDebuggerAttached(aIsDebuggerAttached); } \
97 : NS_IMETHOD Assertion(const char * aStr, const char * aExpr, const char * aFile, int32_t aLine) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Assertion(aStr, aExpr, aFile, aLine); } \
98 : NS_IMETHOD Warning(const char * aStr, const char * aFile, int32_t aLine) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Warning(aStr, aFile, aLine); } \
99 : NS_IMETHOD Break(const char * aFile, int32_t aLine) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Break(aFile, aLine); } \
100 : NS_IMETHOD Abort(const char * aFile, int32_t aLine) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(aFile, aLine); } \
101 : NS_IMETHOD RustPanic(const char * aMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RustPanic(aMessage); }
102 :
103 : #if 0
104 : /* Use the code below as a template for the implementation class for this interface. */
105 :
106 : /* Header file */
107 : class nsDebug2 : public nsIDebug2
108 : {
109 : public:
110 : NS_DECL_ISUPPORTS
111 : NS_DECL_NSIDEBUG2
112 :
113 : nsDebug2();
114 :
115 : private:
116 : ~nsDebug2();
117 :
118 : protected:
119 : /* additional members */
120 : };
121 :
122 : /* Implementation file */
123 : NS_IMPL_ISUPPORTS(nsDebug2, nsIDebug2)
124 :
125 : nsDebug2::nsDebug2()
126 : {
127 : /* member initializers and constructor code */
128 : }
129 :
130 : nsDebug2::~nsDebug2()
131 : {
132 : /* destructor code */
133 : }
134 :
135 : /* readonly attribute boolean isDebugBuild; */
136 : NS_IMETHODIMP nsDebug2::GetIsDebugBuild(bool *aIsDebugBuild)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* readonly attribute long assertionCount; */
142 : NS_IMETHODIMP nsDebug2::GetAssertionCount(int32_t *aAssertionCount)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* readonly attribute bool isDebuggerAttached; */
148 : NS_IMETHODIMP nsDebug2::GetIsDebuggerAttached(bool *aIsDebuggerAttached)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* void assertion (in string aStr, in string aExpr, in string aFile, in long aLine); */
154 : NS_IMETHODIMP nsDebug2::Assertion(const char * aStr, const char * aExpr, const char * aFile, int32_t aLine)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* void warning (in string aStr, in string aFile, in long aLine); */
160 : NS_IMETHODIMP nsDebug2::Warning(const char * aStr, const char * aFile, int32_t aLine)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* void break (in string aFile, in long aLine); */
166 : NS_IMETHODIMP nsDebug2::Break(const char * aFile, int32_t aLine)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* void abort (in string aFile, in long aLine); */
172 : NS_IMETHODIMP nsDebug2::Abort(const char * aFile, int32_t aLine)
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 :
177 : /* void rustPanic (in string aMessage); */
178 : NS_IMETHODIMP nsDebug2::RustPanic(const char * aMessage)
179 : {
180 : return NS_ERROR_NOT_IMPLEMENTED;
181 : }
182 :
183 : /* End of implementation class template. */
184 : #endif
185 :
186 :
187 : #endif /* __gen_nsIDebug2_h__ */
|