php: Test multiple return values in pointer example

This commit is contained in:
Olly Betts 2021-03-31 04:49:38 +13:00
commit c9d64f0bed
2 changed files with 7 additions and 10 deletions

View file

@ -21,10 +21,5 @@ extern void sub(int *INPUT, int *INPUT, int *OUTPUT);
/* Next we'll use typemaps and the %apply directive */
//%apply int *OUTPUT { int *r };
//extern int divide(int n, int d, int *r);
%apply int *OUTPUT { int *r };
extern int divide(int n, int d, int *r);