aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/inplaceadd.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/inplaceadd.i')
-rw-r--r--Examples/test-suite/inplaceadd.i5
1 files changed, 5 insertions, 0 deletions
diff --git a/Examples/test-suite/inplaceadd.i b/Examples/test-suite/inplaceadd.i
index 91ef84bd2..c84603c72 100644
--- a/Examples/test-suite/inplaceadd.i
+++ b/Examples/test-suite/inplaceadd.i
@@ -3,6 +3,11 @@
#include <iostream>
%}
+#if defined(SWIGJAVASCRIPT)
+%rename(addTo) operator +=;
+%rename(subFrom) operator -=;
+%rename(mulTo) operator *=;
+#endif
%inline %{
struct A