diff options
author | bellard <bellard> | 2005-06-17 22:06:18 +0000 |
---|---|---|
committer | bellard <bellard> | 2005-06-17 22:06:18 +0000 |
commit | 4386b4566b18e93fd652c9dd700f750267d9f895 (patch) | |
tree | 6a8168f55136f88c7ae018ca9bb0c951b73a3bc6 | |
parent | 4d7eadb2fab650d3f3f81a28a55f40ec69d08c00 (diff) |
macro function test
-rw-r--r-- | tcctest.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -132,6 +132,10 @@ int qq(int x) } #define qq(x) x +#define spin_lock(lock) do { } while (0) +#define wq_spin_lock spin_lock +#define TEST2() wq_spin_lock(a) + void macro_test(void) { printf("macro:\n");
@@ -268,6 +272,10 @@ void macro_test(void) /* this is a valid comment *\*/ // this is a valid\ comment + + /* test function macro substitution when the function name is + substituted */ + TEST2(); } int op(a,b) |