MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / runFunctions

Function runFunctions

source/ui/mainui.cpp:106–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void runFunctions(std::list<RunOnMain>& functions) {
107 std::list<RunOnMain>::iterator iter = functions.begin();
108 std::list<RunOnMain>::iterator end = functions.end();
109
110 while (iter != end) {
111 RunOnMain& item = *iter;
112 if (item.timeToRun <= SDL_GetTicks()) {
113 if (!item.f()) {
114 iter = functions.erase(iter);
115 } else {
116 ++iter;
117 }
118 } else {
119 ++iter;
120 }
121 }
122}
123
124void uiDraw() {
125 ImGuiStyle& style = ImGui::GetStyle();

Callers 2

uiDrawFunction · 0.85
uiLoopFunction · 0.85

Calls 4

SDL_GetTicksFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected