[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] macro substitution bug

From: ShangHongzhang 62185
Subject: [Tinycc-devel] macro substitution bug
Date: Tue, 18 Dec 2007 18:11:07 +0800

given the following code, TCC can't expent it to correct result.

#define t_fwd_rnd(x) x
#define t_rnd(rm) t_fwd_rnd
#define round(rm, x) t_rnd(rm)(x);t_rnd(rm)(x);

void foo ()
    int b0;
    round(fwd_rnd,  b0);

the correct result should be: b0; b0
but the TCC give the result of:  b0 ; t_rnd ( fwd_rnd ) ( b0 ) ;
the second t_rnd was not expend successfully.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]