comparison tools/gen_v8_binding.m4 @ 663:974d98233eab

Fix mis-using of arguments of OBJ() argument type
author Thinker K.F. Li <thinker@branda.to>
date Mon, 02 Aug 2010 10:14:33 +0800
parents dde4e3cc9529
children 08fd45d119c9
comparison
equal deleted inserted replaced
662:689e15edbf72 663:974d98233eab
141 ])dnl 141 ])dnl
142 define([NUMBER], [dnl 142 define([NUMBER], [dnl
143 double arg_$][1; 143 double arg_$][1;
144 ])dnl 144 ])dnl
145 define([OBJ], [dnl 145 define([OBJ], [dnl
146 $][2 *arg_$][1; 146 $][3 *arg_$][1;
147 ])dnl 147 ])dnl
148 define([STR], [dnl 148 define([STR], [dnl
149 char *arg_$][1; 149 char *arg_$][1;
150 ])dnl 150 ])dnl
151 define([FUNC], [dnl 151 define([FUNC], [dnl
184 ])dnl 184 ])dnl
185 define([NUMBER], [dnl 185 define([NUMBER], [dnl
186 arg_$][1 = args[[i++]]->NumberValue(); 186 arg_$][1 = args[[i++]]->NumberValue();
187 ])dnl 187 ])dnl
188 define([OBJ], [dnl 188 define([OBJ], [dnl
189 arg_$][1 = ($][2 *)UNWRAP(args[[i++]]->ToObject()); 189 arg_$][1 = ($][3 *)UNWRAP(args[[i++]]->ToObject());
190 ])dnl 190 ])dnl
191 define([STR], [dnl 191 define([STR], [dnl
192 arg_$][1 = strdup(*String::Utf8Value(args[[i++]]->ToString())); 192 arg_$][1 = strdup(*String::Utf8Value(args[[i++]]->ToString()));
193 ])dnl 193 ])dnl
194 define([FUNC], [dnl 194 define([FUNC], [dnl