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

Function dosh_core

src/cmd.c:5681–5696  ·  view source on GitHub ↗

'!' command, #shell */

Source from the content-addressed store, hash-verified

5679
5680/* '!' command, #shell */
5681staticfn int
5682dosh_core(void)
5683{
5684#ifdef SHELL
5685 time_t now = getnow();
5686
5687 urealtime.realtime += timet_delta(now, urealtime.start_timing);
5688 urealtime.start_timing = now; /* (see dosuspend_core) */
5689 /* access restrictions, if any, are handled in port code */
5690 dosh();
5691 urealtime.start_timing = getnow();
5692#else
5693 Norep(cmdnotavail, "#shell");
5694#endif
5695 return ECMD_OK;
5696}
5697
5698staticfn int
5699dummyfunction(void)

Callers

nothing calls this directly

Calls 4

getnowFunction · 0.85
timet_deltaFunction · 0.85
NorepFunction · 0.85
doshFunction · 0.50

Tested by

no test coverage detected