MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / addLoop

Method addLoop

plugins/plugin_utils/plugin_HTTP.cpp:747–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747void Templateiser::addLoop(const char* loop, TemplateTestCallback callback) {
748 if (!loop || !callback) {
749 return;
750 }
751
752 std::string l;
753 tolower(loop, l);
754
755 loopFuncCallbacks[l] = callback;
756 ClassMap::iterator itr = loopClassCallbacks.find(l);
757 if (itr != loopClassCallbacks.end()) {
758 loopClassCallbacks.erase(itr);
759 }
760}
761
762void Templateiser::addLoop(const char* loop, TemplateCallbackClass* callback) {
763 if (!loop || !callback) {

Callers 14

initMethod · 0.80
initMethod · 0.80
LogLoopMethod · 0.80
PlayerLoopMethod · 0.80
NavLoopMethod · 0.80
VarsLoopMethod · 0.80
PermsLoopMethod · 0.80
ChatLoopMethod · 0.80
IPBanLoopMethod · 0.80
HostBanLoopMethod · 0.80
IDBanLoopMethod · 0.80
PlayerGroupLoopMethod · 0.80

Calls 3

tolowerFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected