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

Function do_gamelog

src/insight.c:2531–2544  ·  view source on GitHub ↗

#chronicle command */

Source from the content-addressed store, hash-verified

2529
2530/* #chronicle command */
2531int
2532do_gamelog(void)
2533{
2534#ifdef CHRONICLE
2535 if (gg.gamelog) {
2536 show_gamelog(ENL_GAMEINPROGRESS);
2537 } else {
2538 pline("No chronicled events.");
2539 }
2540#else
2541 pline("Chronicle was turned off during compile-time.");
2542#endif /* !CHRONICLE */
2543 return ECMD_OK;
2544}
2545
2546/* 'major' events for dumplog; inclusion or exclusion here may need tuning */
2547#define LL_majors (0L \

Callers

nothing calls this directly

Calls 2

show_gamelogFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected