MCPcopy Create free account
hub / github.com/Norbyte/ositools / ForLoop

Function ForLoop

OsiInterface/Functions/UtilityFunctions.cpp:80–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 void ForLoop(OsiArgumentDesc const & args)
81 {
82 auto eventName = args[0].String;
83 auto count = args[1].Int32;
84
85 for (int32_t index = 0; index < count; index++) {
86 auto eventArgs = OsiArgumentDesc::Create(OsiArgumentValue{ ValueType::String, eventName });
87 eventArgs->Add(OsiArgumentValue{ (int64_t)index });
88
89 gOsirisProxy->GetCustomFunctionInjector().ThrowEvent(ForLoopEventHandle, eventArgs);
90
91 delete eventArgs;
92 }
93 }
94
95 void ForLoopObject(OsiArgumentDesc const & args)
96 {

Callers

nothing calls this directly

Calls 2

ThrowEventMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected