/trunk/Examples/test-suite/errors/pp_macro_expansion_multiline.i

# · Swig · 32 lines · 24 code · 8 blank · 0 comment · 0 complexity · 73023b30b24634940a2a55c1b14f3192 MD5 · raw file

  1. %module xxx
  2. // Testing macros split over multiple lines - ensure the warning message for the ignored functions contain the correct line numbering
  3. #define MYMACRO(NAME, A, B, C) void NAME(int A, int B, int C);
  4. MYMACRO(funk, x,
  5. y,
  6. z
  7. )
  8. void foo(int *);
  9. void foo(const int *);
  10. %define MYSWIGMACRO(A, B, C)
  11. MYMACRO(funk1,
  12. AA,
  13. BB,
  14. CC)
  15. MYMACRO(funk2,
  16. AA,
  17. BB,
  18. CC)
  19. %enddef
  20. MYSWIGMACRO(xx,
  21. yy,
  22. zz)
  23. void bar(int *);
  24. void bar(const int *);