/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
- /* This interface file tests whether character constants are correctly
- wrapped as procedures returning Scheme characters (rather than
- Scheme strings).
- */
- %module char_constant
- #define CHAR_CONSTANT 'x'
- #define STRING_CONSTANT "xyzzy"
- #define ESC_CONST '\1'
- #define NULL_CONST '\0'
- #define SPECIALCHAR 'รก'
- %inline
- {
- const int ia = (int)'a';
- const int ib = 'b';
- }