aboutsummaryrefslogtreecommitdiff
path: root/tests/embind/embind_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/embind/embind_test.cpp')
-rw-r--r--tests/embind/embind_test.cpp4
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);
}