diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-07-25 22:03:18 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-07-25 22:03:18 -0700 |
commit | f8c8b9af2083ed1babe93ec7d21c8f918eb9de15 (patch) | |
tree | 3431703f6b45ff137756ae8d772b18f6ff9fa2ab /tests/runner.py | |
parent | cebc0da5f6ddaf170d458d2c68d4bbd3cee210d5 (diff) |
improve function overloading in bindings generator
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/runner.py b/tests/runner.py index 9cea1460..e46683dd 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -2611,7 +2611,7 @@ if 'benchmark' not in sys.argv: int getValTimes(int times=1) { return value*times; } }; - class Child2 : Parent { + class Child2 : public Parent { public: Child2() : Parent(9) { printf("Child2:%d\\n", value); }; int getValCube() { return value*value*value; } @@ -2649,18 +2649,18 @@ if 'benchmark' not in sys.argv: c1.mulVal(2); print(c1.getVal()); print(c1.getValSqr()); - print(c1.getValSqr_2(3)); + print(c1.getValSqr(3)); print(c1.getValTimes()); // default argument should be 1 print(c1.getValTimes(2)); print('c1 v2'); - c1 = new Child1_2(8); + c1 = new Child1(8); // now with a parameter, we should handle the overloading automatically and properly and use constructor #2 print(c1.getVal()); c1.mulVal(2); print(c1.getVal()); print(c1.getValSqr()); - print(c1.getValSqr_2(3)); + print(c1.getValSqr(3)); print('c2') |