android_system_core/libacc/tests/data/macros.c
Jack Palevich 188a5a7a3a Support nested macros. (Still don't support macro arguments.)
Now you can say:

    #define A B
    #define B C
    #define C 4

int x = A;

And it will work as expected.

Print an error message rather than assert when we're expecting a
function value, but don't find one.
2009-10-27 17:23:20 -07:00

10 lines
139 B
C

#define A B + B
#define B C
int main() {
int C = 3;
printf("A = %d\n", A);
#define C 5
printf("A = %d\n", A);
return 0;
}