PageRenderTime 42ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Swig | 50 lines | 31 code | 16 blank | 3 comment | 0 complexity | 4fe9a83c0bf8cb968bbd7d3b2db32084 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module xxx
  2. /* Test preprocessor comments and their effect on line number reporting on later errors */
  3. #define A1 1234
  4. #define A2 1234 /*C comment*/
  5. #define A3 1234
  6. %constant int aaa=;
  7. #define B1 1234
  8. #define B2 1234 //C++ comment
  9. #define B3 1234
  10. %constant int bbb=;
  11. #define C1 1234
  12. #define C2 1234 /*multiline
  13. C
  14. comment */
  15. #define C3 1234
  16. %constant int ccc=;
  17. #define D1 1234
  18. #define /*C Comment*/ D2 1234
  19. #define D3 1234
  20. %constant int ddd=;
  21. #define E1 1234
  22. #/*C comment*/define E2 1234
  23. #define E3 1234
  24. %constant int eee=;
  25. #define F1 1234
  26. #define F2 1234 \
  27. // C comment
  28. #define F3 1234
  29. %constant int fff=;
  30. // Test macro ending in /, that is not a C comment terminator
  31. #define G1 1234
  32. #define G2 1234 /
  33. #define G3 1234
  34. %constant int ggg=;