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

Function dotoggleoption

src/cmd.c:1375–1384  ·  view source on GitHub ↗

#toggle extended command BIND=':toggle(price_quotes) BIND=@:toggle(autopickup) */

Source from the content-addressed store, hash-verified

1373 BIND=':toggle(price_quotes)
1374 BIND=@:toggle(autopickup) */
1375int
1376dotoggleoption(void)
1377{
1378 if (gc.cmd_bind && gc.cmd_bind->param) {
1379 return toggle_bool_option(gc.cmd_bind->param);
1380 } else {
1381 pline("Use #optionsfull to set any option instead.");
1382 return ECMD_OK;
1383 }
1384}
1385
1386void
1387set_move_cmd(int dir, int run)

Callers

nothing calls this directly

Calls 2

toggle_bool_optionFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected