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

Function cmdq_peek

src/cmd.c:423–427  ·  view source on GitHub ↗

get the top entry without popping it */

Source from the content-addressed store, hash-verified

421
422/* get the top entry without popping it */
423struct _cmd_queue *
424cmdq_peek(int q)
425{
426 return gc.command_queue[q];
427}
428
429/* clear all commands from the command queue */
430void

Callers 5

dip_intoFunction · 0.85
doremringFunction · 0.85
test_moveFunction · 0.85
do_repeatFunction · 0.85
rhackFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_moveFunction · 0.68