aboutsummaryrefslogtreecommitdiff
path: root/src/embind/emval.js
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-01-15 18:09:22 -0800
committerJukka Jylänki <jujjyl@gmail.com>2013-04-12 14:23:09 +0300
commitd893eed16b2257c3ffbb186c08d45a053cc5de68 (patch)
tree8ec2c26519c2a32f0d81bef786fc47223b66259a /src/embind/emval.js
parentc5b8e64a0becd50f51ae50b1f4480f3274f680f6 (diff)
Forgot to implement take_value :)
Diffstat (limited to 'src/embind/emval.js')
-rwxr-xr-xsrc/embind/emval.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/embind/emval.js b/src/embind/emval.js
index 3df5a540..1c4955c5 100755
--- a/src/embind/emval.js
+++ b/src/embind/emval.js
@@ -57,6 +57,12 @@ function __emval_new_cstring(v) {
return __emval_register(Pointer_stringify(v));
}
+function __emval_take_value(type, v) {
+ type = requireRegisteredType(type, '_emval_take_value');
+ v = type.fromWireType(v);
+ return __emval_register(v);
+}
+
function __emval_has_property(handle, k) {
k = Pointer_stringify(k);
return _emval_handle_array[handle].value.hasOwnProperty(k);