summaryrefslogtreecommitdiff
path: root/Examples/test-suite/null_pointer.i
blob: 0da827f99436d4efbde33973c7e1a319b2cc2202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
%module null_pointer

%warnfilter(SWIGWARN_PARSE_KEYWORD) func; // 'func' is a Go keyword, renamed as 'Xfunc'

%inline {
  struct A {};
  
  bool func(A* a) {
    return !a;
  }

  A* getnull() {
    return 0;
  }
}