changeset 670:f0b4fbcd1c51

Support encapsulated method & function return Handle<Value> directly
author Thinker K.F. Li <thinker@branda.to>
date Thu, 05 Aug 2010 17:42:36 +0800
parents eeea1b593a2f
children fc29a343ce7c
files tools/gen_v8_binding.m4
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gen_v8_binding.m4	Thu Aug 05 09:38:07 2010 +0800
+++ b/tools/gen_v8_binding.m4	Thu Aug 05 17:42:36 2010 +0800
@@ -224,6 +224,7 @@
 define([FUNC], [arg_$][1])dnl
 define([SELF], [self])dnl
 define([ERR], [&_err])dnl
+define([VAL], [&_err])dnl
 ])
 
 define([START_METHOD_RET_VAL], [dnl
@@ -242,6 +243,9 @@
 define([FUNC], [dnl
     Handle<Function> _ret;
 ])dnl
+define([VAL], [dnl
+    Handle<Value> _ret;
+])dnl
 ])
 
 define([START_VAR], [dnl
@@ -268,6 +272,7 @@
 define([OBJ], [_ret = ($][2 *)])dnl
 define([STR], [_ret = (char *)])dnl
 define([FUNC], [_ret = ])dnl
+define([VAL], [_ret = ])dnl
 ])
 
 define([START_METHOD_RET], [dnl
@@ -286,6 +291,9 @@
 define([FUNC], [
     _rt_val = _ret;
 ])dnl
+define([VAL], [
+    _rt_val = _ret;
+])dnl
 ])
 
 define([STOP_METHOD_ARG], [dnl