PageRenderTime 43ms CodeModel.GetById 20ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module null_pointer
  2. %warnfilter(SWIGWARN_PARSE_KEYWORD) func; // 'func' is a Go keyword, renamed as 'Xfunc'
  3. %inline {
  4. struct A {};
  5. bool func(A* a) {
  6. return !a;
  7. }
  8. A* getnull() {
  9. return 0;
  10. }
  11. }