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

Function itimeout

src/potion.c:55–64  ·  view source on GitHub ↗

force `val' to be within valid range for intrinsic timeout value */

Source from the content-addressed store, hash-verified

53
54/* force `val' to be within valid range for intrinsic timeout value */
55staticfn long
56itimeout(long val)
57{
58 if (val >= TIMEOUT)
59 val = TIMEOUT;
60 else if (val < 1L)
61 val = 0L;
62
63 return val;
64}
65
66/* increment `old' by `incr' and force result to be valid intrinsic timeout */
67staticfn long

Callers 2

itimeout_incrFunction · 0.85
set_itimeoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected