| 528 | } |
| 529 | |
| 530 | RESTORE_WARNING_CONDEXPR_IS_CONSTANT |
| 531 | |
| 532 | /* #panic command - test program's panic handling */ |
| 533 | int |
| 534 | wiz_panic(void) |
| 535 | { |
| 536 | if (iflags.debug_fuzzer) { |
| 537 | u.uhp = u.uhpmax = 1000; |
| 538 | u.uen = u.uenmax = 1000; |
| 539 | return ECMD_OK; |
| 540 | } |
| 541 | if (paranoid_query(TRUE, |
| 542 | "Do you want to call panic() and end your game?")) |
| 543 | panic("Crash test (#panic)."); |
| 544 | return ECMD_OK; |
| 545 | } |
| 546 | |
| 547 | /* #debugfuzzer command - fuzztest the program */ |
| 548 | int |
nothing calls this directly
no test coverage detected