MCPcopy Index your code
hub / github.com/assaultcube/AC / execaction

Method execaction

source/src/menus.cpp:172–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172int mitem::execaction(const char *arg1)
173{
174 int result = 0;
175 if(getaction())
176 {
177 if(curmenu) setcontext("menu", curmenu->name);
178 push("arg1", arg1);
179 result = execute(getaction());
180 pop("arg1");
181 resetcontext();
182 }
183 return result;
184}
185
186bool mitem::isselection() { return parent->allowinput && !parent->hotkeys && parent->items.inrange(parent->menusel) && parent->items[parent->menusel]==this; }
187

Callers

nothing calls this directly

Calls 5

setcontextFunction · 0.85
pushFunction · 0.85
executeFunction · 0.85
popFunction · 0.85
resetcontextFunction · 0.85

Tested by

no test coverage detected