From 5debab8c23f7eb64285c02d2daeb8c5b90697fb9 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Thu, 15 Apr 1999 03:13:20 +0000 Subject: [PATCH] don't break if we're included in a C file git-svn-id: svn://10.0.0.236/trunk@27532 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/base/nsDebug.h | 6 +++++- mozilla/xpcom/glue/nsDebug.h | 6 +++++- mozilla/xpcom/public/nsDebug.h | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/mozilla/xpcom/base/nsDebug.h b/mozilla/xpcom/base/nsDebug.h index e97bb4941af..2936bfc5c8d 100644 --- a/mozilla/xpcom/base/nsDebug.h +++ b/mozilla/xpcom/base/nsDebug.h @@ -31,6 +31,10 @@ * macros defined later in this file so that the debug code can be * conditionally compiled out. */ + +/* in case this is included by a C file */ +#ifdef __cplusplus + class nsDebug { public: // XXX add in log controls here @@ -175,5 +179,5 @@ if (!(expr)) \ #define NS_BREAK() {} #endif /* ! NS_DEBUG */ - +#endif /* __cplusplus */ #endif /* nsDebug_h___ */ diff --git a/mozilla/xpcom/glue/nsDebug.h b/mozilla/xpcom/glue/nsDebug.h index e97bb4941af..2936bfc5c8d 100644 --- a/mozilla/xpcom/glue/nsDebug.h +++ b/mozilla/xpcom/glue/nsDebug.h @@ -31,6 +31,10 @@ * macros defined later in this file so that the debug code can be * conditionally compiled out. */ + +/* in case this is included by a C file */ +#ifdef __cplusplus + class nsDebug { public: // XXX add in log controls here @@ -175,5 +179,5 @@ if (!(expr)) \ #define NS_BREAK() {} #endif /* ! NS_DEBUG */ - +#endif /* __cplusplus */ #endif /* nsDebug_h___ */ diff --git a/mozilla/xpcom/public/nsDebug.h b/mozilla/xpcom/public/nsDebug.h index e97bb4941af..2936bfc5c8d 100644 --- a/mozilla/xpcom/public/nsDebug.h +++ b/mozilla/xpcom/public/nsDebug.h @@ -31,6 +31,10 @@ * macros defined later in this file so that the debug code can be * conditionally compiled out. */ + +/* in case this is included by a C file */ +#ifdef __cplusplus + class nsDebug { public: // XXX add in log controls here @@ -175,5 +179,5 @@ if (!(expr)) \ #define NS_BREAK() {} #endif /* ! NS_DEBUG */ - +#endif /* __cplusplus */ #endif /* nsDebug_h___ */