MCPcopy Create free account
hub / github.com/NetHack/NetHack / wiz_panic

Function wiz_panic

src/wizcmds.c:530–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530RESTORE_WARNING_CONDEXPR_IS_CONSTANT
531
532/* #panic command - test program's panic handling */
533int
534wiz_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 */
548int

Callers

nothing calls this directly

Calls 2

paranoid_queryFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected