This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Define problems
- From: "David Fredin" <david dot fredin at home dot se>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 06 Jun 2004 17:48:41 +0200
- Subject: Define problems
When running gcc 2.9.5 things work, but when running gcc 3.3.2 it doesn't this is the snippets that show what I mean:
>From a normal .c file:
NOT_ACCEL_MOVE(v, v->change_bounds(v, r));
>From a normal .h file:
#define TEST_SUB_VIEWS(o, x) \
do { \
l_bool tsv = VIEW(o)->is_draw_mode(VIEW(o), DWM_TESTSUBVIEWS); \
VIEW(o)->set_draw_mode(VIEW(o), DWM_TESTSUBVIEWS, true); \
##x; \
VIEW(o)->set_draw_mode(VIEW(o), DWM_TESTSUBVIEWS, tsv); \
} while (0)
The error:
Dev/src/object/view.c:1411:56: pasting ";" and "v" does not give a valid preprocessing token
make.exe: *** [Dev/Obj/object/view.o] Error 1
I don't know what to do, any ideas?
It worked in older gcc's but anymore...
Greetings
David Fredin