PageRenderTime 15ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Swig | 16 lines | 11 code | 5 blank | 0 comment | 0 complexity | 1d2840cb6447f79ac15f71c58614f2ae MD5 | raw file
 1%module null_pointer
 2
 3%warnfilter(SWIGWARN_PARSE_KEYWORD) func; // 'func' is a Go keyword, renamed as 'Xfunc'
 4
 5%inline {
 6  struct A {};
 7  
 8  bool func(A* a) {
 9    return !a;
10  }
11
12  A* getnull() {
13    return 0;
14  }
15}
16