update swig on windows
This commit is contained in:
17
winx64/bin/swigwin-4.0.0/Examples/php/value/example.i
Normal file
17
winx64/bin/swigwin-4.0.0/Examples/php/value/example.i
Normal file
@@ -0,0 +1,17 @@
|
||||
// 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", (void *)v, v->x, v->y, v->z);
|
||||
}
|
||||
%}
|
||||
|
||||
Reference in New Issue
Block a user