| 1428 | // in which normal execution is resumed after printing the string. |
| 1429 | |
| 1430 | void 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 |
no test coverage detected