LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDebug.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/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            1464 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDebug : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDEBUG_IID)
      29                 : 
      30                 :   /* void assertion (in string aStr, in string aExpr, in string aFile, in long aLine); */
      31                 :   NS_SCRIPTABLE NS_IMETHOD Assertion(const char * aStr, const char * aExpr, const char * aFile, PRInt32 aLine) = 0;
      32                 : 
      33                 :   /* void warning (in string aStr, in string aFile, in long aLine); */
      34                 :   NS_SCRIPTABLE NS_IMETHOD Warning(const char * aStr, const char * aFile, PRInt32 aLine) = 0;
      35                 : 
      36                 :   /* void break (in string aFile, in long aLine); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD Break(const char * aFile, PRInt32 aLine) = 0;
      38                 : 
      39                 :   /* void abort (in string aFile, in long aLine); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD Abort(const char * aFile, PRInt32 aLine) = 0;
      41                 : 
      42                 : };
      43                 : 
      44                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDebug, NS_IDEBUG_IID)
      45                 : 
      46                 : /* Use this macro when declaring classes that implement this interface. */
      47                 : #define NS_DECL_NSIDEBUG \
      48                 :   NS_SCRIPTABLE NS_IMETHOD Assertion(const char * aStr, const char * aExpr, const char * aFile, PRInt32 aLine); \
      49                 :   NS_SCRIPTABLE NS_IMETHOD Warning(const char * aStr, const char * aFile, PRInt32 aLine); \
      50                 :   NS_SCRIPTABLE NS_IMETHOD Break(const char * aFile, PRInt32 aLine); \
      51                 :   NS_SCRIPTABLE NS_IMETHOD Abort(const char * aFile, PRInt32 aLine); 
      52                 : 
      53                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      54                 : #define NS_FORWARD_NSIDEBUG(_to) \
      55                 :   NS_SCRIPTABLE NS_IMETHOD Assertion(const char * aStr, const char * aExpr, const char * aFile, PRInt32 aLine) { return _to Assertion(aStr, aExpr, aFile, aLine); } \
      56                 :   NS_SCRIPTABLE NS_IMETHOD Warning(const char * aStr, const char * aFile, PRInt32 aLine) { return _to Warning(aStr, aFile, aLine); } \
      57                 :   NS_SCRIPTABLE NS_IMETHOD Break(const char * aFile, PRInt32 aLine) { return _to Break(aFile, aLine); } \
      58                 :   NS_SCRIPTABLE NS_IMETHOD Abort(const char * aFile, PRInt32 aLine) { return _to Abort(aFile, aLine); } 
      59                 : 
      60                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      61                 : #define NS_FORWARD_SAFE_NSIDEBUG(_to) \
      62                 :   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); } \
      63                 :   NS_SCRIPTABLE NS_IMETHOD Warning(const char * aStr, const char * aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Warning(aStr, aFile, aLine); } \
      64                 :   NS_SCRIPTABLE NS_IMETHOD Break(const char * aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Break(aFile, aLine); } \
      65                 :   NS_SCRIPTABLE NS_IMETHOD Abort(const char * aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(aFile, aLine); } 
      66                 : 
      67                 : #if 0
      68                 : /* Use the code below as a template for the implementation class for this interface. */
      69                 : 
      70                 : /* Header file */
      71                 : class nsDebug : public nsIDebug
      72                 : {
      73                 : public:
      74                 :   NS_DECL_ISUPPORTS
      75                 :   NS_DECL_NSIDEBUG
      76                 : 
      77                 :   nsDebug();
      78                 : 
      79                 : private:
      80                 :   ~nsDebug();
      81                 : 
      82                 : protected:
      83                 :   /* additional members */
      84                 : };
      85                 : 
      86                 : /* Implementation file */
      87                 : NS_IMPL_ISUPPORTS1(nsDebug, nsIDebug)
      88                 : 
      89                 : nsDebug::nsDebug()
      90                 : {
      91                 :   /* member initializers and constructor code */
      92                 : }
      93                 : 
      94                 : nsDebug::~nsDebug()
      95                 : {
      96                 :   /* destructor code */
      97                 : }
      98                 : 
      99                 : /* void assertion (in string aStr, in string aExpr, in string aFile, in long aLine); */
     100                 : NS_IMETHODIMP nsDebug::Assertion(const char * aStr, const char * aExpr, const char * aFile, PRInt32 aLine)
     101                 : {
     102                 :     return NS_ERROR_NOT_IMPLEMENTED;
     103                 : }
     104                 : 
     105                 : /* void warning (in string aStr, in string aFile, in long aLine); */
     106                 : NS_IMETHODIMP nsDebug::Warning(const char * aStr, const char * aFile, PRInt32 aLine)
     107                 : {
     108                 :     return NS_ERROR_NOT_IMPLEMENTED;
     109                 : }
     110                 : 
     111                 : /* void break (in string aFile, in long aLine); */
     112                 : NS_IMETHODIMP nsDebug::Break(const char * aFile, PRInt32 aLine)
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* void abort (in string aFile, in long aLine); */
     118                 : NS_IMETHODIMP nsDebug::Abort(const char * aFile, PRInt32 aLine)
     119                 : {
     120                 :     return NS_ERROR_NOT_IMPLEMENTED;
     121                 : }
     122                 : 
     123                 : /* End of implementation class template. */
     124                 : #endif
     125                 : 
     126                 : 
     127                 : #endif /* __gen_nsIDebug_h__ */

Generated by: LCOV version 1.7