summaryrefslogtreecommitdiff
path: root/Examples/test-suite/swigobject.i
blob: 2ec0645092ab9396d775da164c323d608a45ea4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
%module swigobject



%inline
{
  struct A {
    char name[4];
  };

  const char* pointer_str(A *a){
    static char result[1024];
    sprintf(result,"%p", a);
    return result;
  }

  A *a_ptr(A *a){
    return a;
  }


  void *v_ptr(void *a){
    return a;
  }
}