aboutsummaryrefslogtreecommitdiff
path: root/tests/embind/embind_test.cpp
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-08-29 13:58:54 -0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2014-02-04 16:16:52 +0700
commit34798ee526774bf5040bf5153575e867c82a72e5 (patch)
tree90575efd535b3535085a22534c4038bb0b01458f /tests/embind/embind_test.cpp
parent1511e68f617e555b5342fe9df693eed07ffac8cb (diff)
Bring back Joe's original test too
Diffstat (limited to 'tests/embind/embind_test.cpp')
-rw-r--r--tests/embind/embind_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/embind/embind_test.cpp b/tests/embind/embind_test.cpp
index f723f240..1d871924 100644
--- a/tests/embind/embind_test.cpp
+++ b/tests/embind/embind_test.cpp
@@ -2248,6 +2248,11 @@ StringHolder return_StringHolder_copy(val func) {
return func.as<StringHolder>();
}
+StringHolder call_StringHolder_func(val func) {
+ return func().as<StringHolder>();
+}
+
EMSCRIPTEN_BINDINGS(return_values) {
function("return_StringHolder_copy", &return_StringHolder_copy);
+ function("call_StringHolder_func", &call_StringHolder_func);
}