Extra Examples

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@10790 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Cheryl Foil 2008-08-18 18:30:21 +00:00
commit ad0a3d9179
9 changed files with 63 additions and 16 deletions

View file

@ -7,10 +7,16 @@ extern void sub(int *, int *, int *);
extern int divide(int, int, int *);
%}
/* This example illustrates a couple of different techniques
/** This example illustrates a couple of different techniques
for manipulating C pointers */
/* First we'll use the pointer library */
/*! function add
\param x some int x
\param y some int y
\param result some result
*/
extern void add(int *x, int *y, int *result);
%include cpointer.i
%pointer_functions(int, intp);
@ -28,3 +34,5 @@ extern int divide(int n, int d, int *r);