diff options
author | Chad Austin <chad@imvu.com> | 2014-05-02 15:21:22 -0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2014-05-21 22:56:20 +0700 |
commit | 6ce9851175ef56f894bd537fbf871c363f8bd402 (patch) | |
tree | c8e9403e98b2cfbe15be24682d281822b18a1889 /tests/embind/embind_test.cpp | |
parent | 755444d1a4ca561b53add3d4660864b465cd252d (diff) |
concrete methods are accessible externally. also rethink some other tests.
Diffstat (limited to 'tests/embind/embind_test.cpp')
-rw-r--r-- | tests/embind/embind_test.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/embind/embind_test.cpp b/tests/embind/embind_test.cpp index 52103bbb..8152fab0 100644 --- a/tests/embind/embind_test.cpp +++ b/tests/embind/embind_test.cpp @@ -1090,6 +1090,10 @@ public: virtual std::shared_ptr<Derived> returnsSharedPtr() = 0; virtual void differentArguments(int i, double d, unsigned char f, double q, std::string) = 0; + + std::string concreteMethod() const { + return "concrete"; + } }; EMSCRIPTEN_SYMBOL(optionalMethod); @@ -1158,6 +1162,7 @@ EMSCRIPTEN_BINDINGS(interface_tests) { .allow_subclass<AbstractClassWrapper>("AbstractClassWrapper") .function("abstractMethod", &AbstractClass::abstractMethod) .function("optionalMethod", &AbstractClass::optionalMethod) + .function("concreteMethod", &AbstractClass::concreteMethod) ; function("getAbstractClass", &getAbstractClass); |