Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. ------------- test.c ------------------------
  2. #define TESTER( foo ) { .export TEST##foo; testing foo }
  3.  
  4. TESTER( A )
  5. TESTER( A \
  6. B )
  7. -----------------
  8.  
  9. "gcc-4.5 -x c -E tester.c -o tester.E && cat tester.E" yields:
  10.  
  11. { .export TESTA; testing A }
  12. { .export
  13. TESTA
  14. # 5 "tester.c"
  15. B; testing A B }
  16.  
  17. "gcc-4.2 -x c -E tester.c -o tester.E && cat tester.E" yields:
  18. { .export TESTA; testing A }
  19. { .export TESTA B; testing A B }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement