/trunk/Examples/php/value/example.i
Swig | 17 lines | 11 code | 5 blank | 1 comment | 0 complexity | 474d98123276b2f87e73856a50f93a1c MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- // Tests SWIG's handling of pass-by-value for complex datatypes
- %module example
- %{
- #include "example.h"
- %}
- %include "example.h"
- /* Some helper functions for our interface */
- %inline %{
- void vector_print(Vector *v) {
- printf("Vector %p = (%g, %g, %g)\n", v, v->x, v->y, v->z);
- }
- %}