PageRenderTime 18ms CodeModel.GetById 16ms app.highlight 0ms RepoModel.GetById 1ms 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
 1/* This interface file tests whether character constants are correctly
 2   wrapped as procedures returning Scheme characters (rather than
 3   Scheme strings). 
 4*/
 5
 6%module char_constant
 7
 8#define CHAR_CONSTANT 'x'
 9
10#define STRING_CONSTANT "xyzzy"
11
12#define ESC_CONST  '\1'
13#define NULL_CONST '\0'
14#define SPECIALCHAR 'รก'
15
16%inline 
17{
18  const int ia = (int)'a';
19  const int ib = 'b';
20}