diff options
author | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-21 14:56:18 +0000 |
---|---|---|
committer | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-21 14:56:18 +0000 |
commit | e6c582ed7f0e5e66ab969b5df41214b8d9ecb3dd (patch) | |
tree | 0a007b1061e13c1efe9e683b79763a5652183aaa /libobjc/objc-private | |
parent | 3d997fca368181502fbe9c7ae544ff2a680cade7 (diff) | |
download | gcc-e6c582ed7f0e5e66ab969b5df41214b8d9ecb3dd.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168119 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/objc-private')
-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 cbb335b8f83..4f4ec5cd077 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...) |