This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Preprocessing & #error
- From: "Alex Vinokur" <alexvn at connect dot to>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 10 Dec 2003 10:03:30 +0200
- Subject: Preprocessing & #error
Here is some code.
====== C code : foo.c : BEGIN ======
#define ITEM1 100
#define ITEM2 200
#if (ITEM1 != ITEM2)
#error BUG : ITEM1 != ITEM2
#endif
====== C code : foo.c : END ========
====== Compilation (Preprocessing) : BEGIN ======
$ gcc -v
[---omitted---]
gcc version 3.3.1 (cygming special)
$ gcc foo.c
foo.c:4:2: #error BUG : ITEM1 != ITEM2
====== Compilation (Preprocessing) : END ========
I would like to get the following output :
$ gcc foo.c
foo.c:4:2: #error BUG : 100 != 200
Is it possible?
=====================================
Alex Vinokur
mailto:alexvn@connect.to
http://mathforum.org/library/view/10978.html
=====================================