PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/char_constant.i

#
Swig | 20 lines | 11 code | 5 blank | 4 comment | 0 complexity | aff574bf9e1b48ab7fc896a2417b1837 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. /* This interface file tests whether character constants are correctly
  2. wrapped as procedures returning Scheme characters (rather than
  3. Scheme strings).
  4. */
  5. %module char_constant
  6. #define CHAR_CONSTANT 'x'
  7. #define STRING_CONSTANT "xyzzy"
  8. #define ESC_CONST '\1'
  9. #define NULL_CONST '\0'
  10. #define SPECIALCHAR 'รก'
  11. %inline
  12. {
  13. const int ia = (int)'a';
  14. const int ib = 'b';
  15. }