diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-12-21 14:56:18 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-12-21 14:56:18 +0000 |
commit | df0820da970383d46a7e5fb0a04d504a8b280553 (patch) | |
tree | 0a007b1061e13c1efe9e683b79763a5652183aaa /libobjc/objc-private/common.h | |
parent | 59db109afd1513b2fa26ef4adcf85ba80d5eab59 (diff) | |
download | gcc-df0820da970383d46a7e5fb0a04d504a8b280553.zip gcc-df0820da970383d46a7e5fb0a04d504a8b280553.tar.gz gcc-df0820da970383d46a7e5fb0a04d504a8b280553.tar.bz2 |
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/:
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
* objc-private/common.h: When DEBUG is defined, include <stdio.h>.
Updated comments.
* init.c (__objc_tree_insert_class): Use %p, not %x, when printing
a pointer using DEBUG_PRINTF.
From-SVN: r168119
Diffstat (limited to 'libobjc/objc-private/common.h')
-rw-r--r-- | libobjc/objc-private/common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libobjc/objc-private/common.h b/libobjc/objc-private/common.h index cbb335b..4f4ec5c 100644 --- a/libobjc/objc-private/common.h +++ b/libobjc/objc-private/common.h @@ -33,7 +33,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see being included by an external file. */ #define GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF 1 +/* When debugging libobjc, add + + #define DEBUG 1 + + at the very beginning of a file in libobjc (before including this file) to turn + on DEBUG_PRINTF(). */ #ifdef DEBUG +#include <stdio.h> #define DEBUG_PRINTF(format, args...) printf (format, ## args) #else #define DEBUG_PRINTF(format, args...) |