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

Function nhcmdset_add

outdated/sys/wince/mhcmd.c:1291–1299  ·  view source on GitHub ↗

-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

1289}
1290/*-------------------------------------------------------------------------*/
1291void
1292nhcmdset_add(PNHCmdSet p, PNHCmdLayout layout)
1293{
1294 assert(p);
1295 assert(p->count < NH_CMDSET_MAXSIZE);
1296 p->elements[p->count].layout = layout;
1297 p->elements[p->count].free_on_destroy = 0;
1298 p->count++;
1299}
1300/*-------------------------------------------------------------------------*/
1301void
1302nhcmdset_destroy(PNHCmdSet p)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected