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

Method internalStoreStrings

src/macro.cpp:238–248  ·  view source on GitHub ↗

* Stores the given arguments as Strings into lastResultStrings. */

Source from the content-addressed store, hash-verified

236 * Stores the given arguments as Strings into lastResultStrings.
237 */
238duk_ret_t Macro::internalStoreStrings(duk_context *context) {
239 duk_idx_t numArgs = duk_get_top(context);
240 Macro::lastResultStrings.clear();
241 for( int i = 0; i < numArgs; ++i ) {
242 if( duk_get_type(context, i) == DUK_TYPE_STRING ) {
243 // dummyInt = duk_to_int(context, i);
244 Macro::lastResultStrings.push_back(duk_to_string(context, i));
245 }
246 }
247 return 0;
248}
249
250std::vector<std::string> Macro::getLastResultStrings() {
251 return Macro::lastResultStrings;

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected