MCPcopy Index your code
hub / github.com/NetHack/NetHack / FuncAsCommand

Method FuncAsCommand

win/Qt/qt_main.cpp:1118–1124  ·  view source on GitHub ↗

queue up the command name for a function, as if user had typed it

Source from the content-addressed store, hash-verified

1116
1117// queue up the command name for a function, as if user had typed it
1118void NetHackQtMainWindow::FuncAsCommand(int (*func)(void))
1119{
1120 char cmdbuf[32];
1121 Strcpy(cmdbuf, "#");
1122 (void) cmdname_from_func(func, &cmdbuf[1], FALSE);
1123 doKeys(cmdbuf);
1124}
1125
1126void NetHackQtMainWindow::AddMessageWindow(NetHackQtMessageWindow* window)
1127{

Callers 2

qt_inv.cppFile · 0.80
qt_stat.cppFile · 0.80

Calls 1

cmdname_from_funcFunction · 0.85

Tested by

no test coverage detected