* Stores the given arguments as Ints into lastResultInts. */
| 212 | * Stores the given arguments as Ints into lastResultInts. |
| 213 | */ |
| 214 | duk_ret_t Macro::internalStoreInts(duk_context *context) { |
| 215 | // int dummyInt; |
| 216 | duk_idx_t numArgs = duk_get_top(context); |
| 217 | Macro::lastResultInts.clear(); |
| 218 | for( int i = 0; i < numArgs; ++i ) { |
| 219 | if( duk_get_type(context, i) == DUK_TYPE_NUMBER ) { |
| 220 | // dummyInt = duk_to_int(context, i); |
| 221 | Macro::lastResultInts.push_back(duk_to_int(context, i)); |
| 222 | } |
| 223 | } |
| 224 | return 0; |
| 225 | } |
| 226 | |
| 227 | /** |
| 228 | * Returns the last stored Int results |