set_eval_limit

skylib_fluffos_v3/mudlib/doc/driver/efuns/system/set_eval_limit · 625 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

.\"set the maximum evaluation cost
.DT
set_eval_limit
$MUDNAME$ driver help
set_eval_limit

.SH Name
.SI 5
set_eval_limit() - set the maximum evaluation cost
.EI

.SH Synopsis
.SI 5
void set_eval_limit( int limit );
.EI

.SH Description
.SP 5 5
set_eval_limit(), with a non-zero argument `limit', sets the maximum evaluation
cost that is allowed for any one thread before a runtime error occurs to
`limit'.
With a zero argument, it sets the current evaluation counter to zero,
and the maximum cost is returned.  set_eval_limit(-1) returns the
remaining evaluation cost.

.EP
See also
.SI 5
eval_cost(), reset_eval_cost()
.EI

Site Stats

Snippets: 1791
Codebases: 571