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

Function bz_callbackExists

src/bzfs/bzfsAPI.cpp:3725–3742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3723}
3724
3725BZF_API bool bz_callbackExists(const char* name) {
3726 if (!name) {
3727 return false;
3728 }
3729
3730 std::string callbackName = name;
3731
3732 std::map<std::string, bz_GenericCallback*>::iterator classItr = callbackClasses.find(callbackName);
3733 if (classItr != callbackClasses.end()) {
3734 return true;
3735 }
3736
3737 std::map<std::string, bz_GenericCallbackFunc>::iterator funcItr = callbackFunctions.find(callbackName);
3738 if (funcItr != callbackFunctions.end()) {
3739 return true;
3740 }
3741 return false;
3742}
3743
3744// team info
3745BZF_API int bz_getTeamCount(bz_eTeamType _team) {

Callers 1

bz_LoadFunction · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected