diff options
author | Chad Austin <chad@imvu.com> | 2013-04-16 17:53:38 -0700 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-18 20:08:18 +0300 |
commit | e5c04828c4c2eaec83cf25b83067064db2270c2e (patch) | |
tree | 5cffdf75236d2bb98674ace9c4c4bdb4226dff4c /tests/embind/embind_test.cpp | |
parent | 775f840e378eba5a9a8053857113a40efb980fb7 (diff) |
fix readLatin1String to actually cover the range of latin-1 characters and add support for interned string symbols to emscripten::val
Diffstat (limited to 'tests/embind/embind_test.cpp')
-rw-r--r-- | tests/embind/embind_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/embind/embind_test.cpp b/tests/embind/embind_test.cpp index 5733c08f..9bab2872 100644 --- a/tests/embind/embind_test.cpp +++ b/tests/embind/embind_test.cpp @@ -1087,6 +1087,8 @@ public: }
};
+symbol optionalMethodSymbol = "optionalMethod";
+
class AbstractClassWrapper : public wrapper<AbstractClass> {
public:
EMSCRIPTEN_WRAPPER(AbstractClassWrapper);
@@ -1095,7 +1097,7 @@ public: return call<std::string>("abstractMethod");
}
std::string optionalMethod(std::string s) const {
- return optional_call<std::string>("optionalMethod", [&] {
+ return optional_call<std::string>(optionalMethodSymbol, [&] {
return AbstractClass::optionalMethod(s);
}, s);
}
|