MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / LibraryVersionNumber

Function LibraryVersionNumber

src/behavior_tree.cpp:113–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113int LibraryVersionNumber()
114{
115 static int number = -1;
116 if(number == -1)
117 {
118 auto const parts = splitString(BTCPP_LIBRARY_VERSION, '.');
119 number = std::stoi(std::string(parts[0])) * 10000 +
120 std::stoi(std::string(parts[1])) * 100 + std::stoi(std::string(parts[2]));
121 }
122 return number;
123}
124
125const char* LibraryVersionString()
126{

Callers 1

TESTFunction · 0.85

Calls 2

splitStringFunction · 0.85
stringFunction · 0.85

Tested by 1

TESTFunction · 0.68