MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / operator()

Method operator()

src/Ext/Script/Body.cpp:845–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843void ScriptExt::VariablesHandler(TeamClass* pTeam, PhobosScripts eAction, int nArg)
844{
845 struct operation_set { int operator()(const int& a, const int& b) { return b; } };
846 struct operation_add { int operator()(const int& a, const int& b) { return a + b; } };
847 struct operation_minus { int operator()(const int& a, const int& b) { return a - b; } };
848 struct operation_multiply { int operator()(const int& a, const int& b) { return a * b; } };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected