MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / internalStoreInts

Method internalStoreInts

src/macro.cpp:214–225  ·  view source on GitHub ↗

* Stores the given arguments as Ints into lastResultInts. */

Source from the content-addressed store, hash-verified

212 * Stores the given arguments as Ints into lastResultInts.
213 */
214duk_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

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected