/trunk/Examples/php/value/example.i
# · Swig · 17 lines · 11 code · 5 blank · 1 comment · 0 complexity · 474d98123276b2f87e73856a50f93a1c MD5 · raw file
- // 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);
- }
- %}