tinycc-devel
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Tinycc-devel] #define problem
From
:
koldo . ramirez
Subject
:
[Tinycc-devel] #define problem
Date
:
Sat, 18 Apr 2009 09:28:23 +0200
Hello all
I have found a problem if two #defines apply to the same symbol in the same line.
Here it is a sample code
typedef struct {
double x;
} Demo;
#define pow2(a) (a*a)
#define x (val->x)
double fun(Demo *val)
{
return pow2(x);
}
In line "return pow2(x);" the two defines apply.
Compiling this I get a "10: field not found: (".
I have tested with gcc and msc9 and I do not get any error (but there is no main() in the source).
Best regards
Koldo
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Tinycc-devel] #define problem
,
koldo . ramirez
<=
Fwd: [Tinycc-devel] #define problem
,
koldo . ramirez
,
2009/04/21
Re: Fwd: [Tinycc-devel] #define problem
,
Anton Rolls
,
2009/04/21
Prev by Date:
Re: [Tinycc-devel] "identifier expected"? But not by GCC.
Next by Date:
Re: [Tinycc-devel] "identifier expected"? But not by GCC.
Previous by thread:
[Tinycc-devel] "identifier expected"? But not by GCC.
Next by thread:
Fwd: [Tinycc-devel] #define problem
Index(es):
Date
Thread