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

Function ifthen

source/src/command.cpp:1021–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019// () and [] expressions, any control construct can be defined trivially.
1020
1021void ifthen(char *cond, char *thenp, char *elsep) { commandret = executeret(cond[0]!='0' ? thenp : elsep); }
1022bool __dummy_ifthen = addcommand("if", (void (*)())ifthen, "sss");
1023//COMMANDN(if, ifthen, "sss"); // CB seriously trips over this one ;)
1024

Callers

nothing calls this directly

Calls 1

executeretFunction · 0.85

Tested by

no test coverage detected