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.


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to