1 /* This interface file checks how well SWIG handles passing data back
2 through arguments WITHOUT returning it separately; for the cases where
3 maybe multiple values are passed by reference and all want changing */
8 %pointer_functions(int,intp);
12 int incp(int *value) {
17 int incr(int &value) {
23 int inctr(IntRef value) {
27 // example of the old DB login type routines where you keep
28 // a void* which it points to its opaque struct when you login
29 // So login function takes a void**
30 void voidhandle(void** handle) {
31 *handle=(void*)"Here it is";
33 char * handle(void* handle) {
34 return (char *)handle;