git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6855 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-12-11 00:10:15 +00:00
commit d2a7c4072a

View file

@ -2111,7 +2111,7 @@ You can make a <tt>Vector</tt> look alot like a class by writing a SWIG interfac
%extend Vector { // Attach these functions to struct Vector
Vector(double x, double y, double z) {
Vector *v;
v = (Vector *v) malloc(sizeof(Vector));
v = (Vector *) malloc(sizeof(Vector));
v-&gt;x = x;
v-&gt;y = y;
v-&gt;z = z;