PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/php/value/example.i

#
Swig | 17 lines | 11 code | 5 blank | 1 comment | 0 complexity | 474d98123276b2f87e73856a50f93a1c MD5 | raw file
 1// Tests SWIG's handling of pass-by-value for complex datatypes
 2%module example
 3
 4%{
 5#include "example.h"
 6%}
 7
 8%include "example.h"
 9
10/* Some helper functions for our interface */
11%inline %{
12
13void vector_print(Vector *v) {
14  printf("Vector %p = (%g, %g, %g)\n", v, v->x, v->y, v->z);
15}
16%}
17