On Sun, Feb 09, 2003 at 04:47:55PM -0500, Clint Adams wrote:
> > Any identifier without a definition is considered to be 0 in an #if.
> > Macro substitution is performed on TEST_THREE, which converts it to the
> > identifier TEST_THREE - still not #define'd. So it's 0.
>
> So, to be clear, it's
> Any identifier without a definition is considered to be 0 in an #if.
> Macro substitution is performed on TEST_THREE, which converts it to the
> identifier TEST_THREE - still not #define'd. So it's 0.
So, to be clear, it's impossible to compare RLIMIT defines in the
preprocessor, then?
On Sun, Feb 09, 2003 at 12:40:07PM -0500, Clint Adams wrote:
> > The output of "cpp test.c" on the attached file:
>
> And cpp -Wundef test.c:
>
> # 1 "test.c"
> # 1 ""
> # 1 ""
> # 1 "test.c"
> test.c:5:2: warning: #warning TEST_FIVE defined
> test.c:8:2: warning: #warning TEST_NINE defined
> # 1
> The output of "cpp test.c" on the attached file:
And cpp -Wundef test.c:
# 1 "test.c"
# 1 ""
# 1 ""
# 1 "test.c"
test.c:5:2: warning: #warning TEST_FIVE defined
test.c:8:2: warning: #warning TEST_NINE defined
# 15 "test.c"
test.c:24:6: warning: "TEST_FOUR" is not defined
test.c:24:19: warning:
4 matches
Mail list logo