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

Method MenuOrText_too_soon_warning

win/Qt/qt_menu.cpp:1237–1241  ·  view source on GitHub ↗

StartMenu() turns a MenuOrTextWindow into a MenuWindow, PutStr() turns one into a TextWindow; calling any other MenuOrTextWindow routine before either of those elicits a warning. (Should probably quit via panic() instead.)

Source from the content-addressed store, hash-verified

1235// calling any other MenuOrTextWindow routine before either of those
1236// elicits a warning. (Should probably quit via panic() instead.)
1237void NetHackQtMenuOrTextWindow::MenuOrText_too_soon_warning(const char *which)
1238{
1239 impossible("'%s' called before we know whether window is Menu or Text.",
1240 which);
1241}
1242
1243QWidget* NetHackQtMenuOrTextWindow::Widget()
1244{

Callers

nothing calls this directly

Calls 1

impossibleFunction · 0.50

Tested by

no test coverage detected