/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. %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. }