PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/test-suite/d_nativepointers.i

#
Swig | 21 lines | 18 code | 3 blank | 0 comment | 0 complexity | ed9241f9ea385e9f0ce5eb2ebffa8bce MD5 | raw file
 1%module d_nativepointers;
 2
 3%inline %{
 4  class SomeClass {
 5  };
 6  class OpaqueClass;
 7  typedef void (*FuncA)(int **x, char ***y);
 8  typedef void (*FuncB)(int **x, SomeClass *y);
 9
10  int *a( int *value ){ return value; }
11  float **b( float **value ){ return value; }
12  char ***c( char ***value ){ return value; }
13  SomeClass *d( SomeClass *value ){ return value; }
14  SomeClass **e( SomeClass **value ){ return value; }
15  OpaqueClass *f( OpaqueClass *value ){ return value; }
16  FuncA g( FuncA value ){ return value; }
17  FuncB* h( FuncB* value ){ return value; }
18
19  int &refA( int &value ){ return value; }
20  float *&refB( float *&value ){ return value; }
21%}