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

Method addIF

plugins/plugin_utils/plugin_HTTP.cpp:801–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

799}
800
801void Templateiser::addIF(const char* name, TemplateTestCallback callback) {
802 if (!name || !callback) {
803 return;
804 }
805
806 std::string n;
807 tolower(name, n);
808
809 ifFuncCallbacks[n] = callback;
810 ClassMap::iterator itr = ifClassCallbacks.find(n);
811 if (itr != ifClassCallbacks.end()) {
812 ifClassCallbacks.erase(itr);
813 }
814}
815
816void Templateiser::addIF(const char* name, TemplateCallbackClass* callback) {
817 if (!name || !callback) {

Callers 10

initMethod · 0.80
initMethod · 0.80
PlayerLoopMethod · 0.80
NavLoopMethod · 0.80
ChatLoopMethod · 0.80
IPBanLoopMethod · 0.80
HostBanLoopMethod · 0.80
IDBanLoopMethod · 0.80
UserInfoMethod · 0.80
ServerErrorMethod · 0.80

Calls 3

tolowerFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected