MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / PrintWarning

Function PrintWarning

general.cpp:1430–1449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1428// in which normal execution is resumed after printing the string.
1429
1430void PrintWarning(CONST char *sz)
1431{
1432#ifndef WIN
1433 AnsiColor(kRedA);
1434 fprintf(stderr, "%s\n", sz);
1435 AnsiColor(kDefault);
1436#else
1437 char szT[cchSzDef];
1438
1439 if (wi.fNoPopup)
1440 return;
1441 if (gs.nAnim > 0) {
1442 // Turn off animation to avoid continual warning messages.
1443 neg(gs.nAnim);
1444 WiCheckMenu(cmdAnimateNo, fFalse);
1445 }
1446 sprintf(szT, "%s Warning", szAppName);
1447 MessageBox(wi.hwndMain, sz, szT, MB_ICONSTOP);
1448#endif
1449}
1450
1451
1452// Print an error message. This is called in more serious cases which halt

Callers 15

FProcessCommandLineFunction · 0.85
NParseCommandLineFunction · 0.85
FProcessSwitchesFunction · 0.85
FinalizeProgramFunction · 0.85
PchGetParameterFunction · 0.85
FProcessSwitchFileFunction · 0.85
FProcessAAFFileFunction · 0.85
FProcessQuickFileFunction · 0.85
FOutputQuickFileFunction · 0.85
FProcessADBFileFunction · 0.85
FProcessSFTextFileFunction · 0.85
io.cppFile · 0.85

Calls 1

AnsiColorFunction · 0.85

Tested by

no test coverage detected