set_eval_limit |
Discworld driver help |
set_eval_limit |
Name
set_eval_limit() - set the maximum evaluation cost
Synopsis
void set_eval_limit( int limit );
Description
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.
See also
eval_cost(), reset_eval_cost()