diff options
author | Chad Austin <chad@imvu.com> | 2013-01-15 18:09:22 -0800 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-12 14:23:09 +0300 |
commit | d893eed16b2257c3ffbb186c08d45a053cc5de68 (patch) | |
tree | 8ec2c26519c2a32f0d81bef786fc47223b66259a | |
parent | c5b8e64a0becd50f51ae50b1f4480f3274f680f6 (diff) |
Forgot to implement take_value :)
-rwxr-xr-x | src/embind/emval.js | 6 |
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); |