MCPcopy Create free account
hub / github.com/bwapi/bwapi / DropMessage

Function DropMessage

bwapi/SNP_DirectIP/SNP/Output.cpp:10–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8int messageOffset = 0;
9
10void DropMessage(int errorlevel, const char *format, ...)
11{
12#ifdef _DEBUG
13 char szBuffer[512];
14 va_list ap;
15 va_start(ap, format);
16 vsnprintf_s(szBuffer, 512, 512, format, ap);
17 va_end(ap);
18
19 HDC screen = GetDC(NULL);
20 int dropcolor[] = {0x000000, 0x008888, 0x0000FF};
21 SetTextColor(screen, dropcolor[errorlevel]);
22 TextOutA(screen, 0, messageOffset*16, szBuffer, strlen(szBuffer));
23 messageOffset = (messageOffset+1)%40;
24 const char *szSpaces = " ";
25 TextOutA(screen, 0, messageOffset*16, szSpaces, strlen(szSpaces));
26 ReleaseDC(NULL, screen);
27#endif
28}
29
30void DropLastError(const char *format, ...)
31{

Callers 12

initializeMethod · 0.85
sendAsynMethod · 0.85
DropLastErrorFunction · 0.85
spiSendFunction · 0.85
spiReceiveFunction · 0.85
spiCompareNetAddressesFunction · 0.85
spiFreeExternalMessageFunction · 0.85
spiGetPerformanceDataFunction · 0.85
spiInitializeDeviceFunction · 0.85
spiSelectGameFunction · 0.85
spiSendExternalMessageFunction · 0.85
spiLeagueGetNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected