MCPcopy Create free account
hub / github.com/ddnet/ddnet / BugToFlag

Function BugToFlag

src/game/mapbugs.cpp:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22};
23
24static unsigned int BugToFlag(int Bug)
25{
26 unsigned int Result;
27 dbg_assert((unsigned)Bug < 8 * sizeof(Result), "invalid shift");
28 Result = (1 << Bug);
29 return Result;
30}
31
32static unsigned int IsBugFlagSet(int Bug, unsigned int BugFlags)
33{

Callers 3

IsBugFlagSetFunction · 0.85
mapbugs.cppFile · 0.85
UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected