From e90215b0fc4b55859501a8716e82e576ec664f04 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Wed, 16 Jan 2013 15:29:17 +0000 Subject: [PATCH] These names only make sense for Python In future, it might make sense to use these names as the intermediate names for C# and Java too but for now, keep them separate. --- library/bindings/Vector.i | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/bindings/Vector.i b/library/bindings/Vector.i index 37d0b3ab..188333e7 100644 --- a/library/bindings/Vector.i +++ b/library/bindings/Vector.i @@ -13,6 +13,7 @@ PROPERTY(PolyVox::Vector, z, getZ, setZ) #endif %extend PolyVox::Vector { +#ifdef SWIGPYTHON PolyVox::Vector __add__(const PolyVox::Vector& rhs) { return *$self + rhs; } @@ -31,6 +32,7 @@ PROPERTY(PolyVox::Vector, z, getZ, setZ) PolyVox::Vector __mul__(const StorageType& rhs) { return *$self * rhs; } +#endif STR() };