/trunk/Examples/test-suite/null_pointer.i
# · Swig · 16 lines · 11 code · 5 blank · 0 comment · 0 complexity · 1d2840cb6447f79ac15f71c58614f2ae MD5 · raw file
- %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;
- }
- }