focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / errmax
1 NAME
2     errmax - return or set maximum error-count before execution stops
3
4 SYNOPSIS
5     errmax([num])
6
7 TYPES
8     num         integer
9
10     return      integer
11
12 DESCRIPTION
13     Without an argument, errmax() returns the current value of an
14     internal variable errmax.  Calling errmax(num) returns this value
15     but then resets its value to num.  Execution is aborted if
16     evaluation of an error value if this makes errcount > errmax.
17     An error message displays the errno for the error.
18
19 EXAMPLE
20     > errmax(2)
21         0
22     > errcount()
23         0
24     > a = 1/0; b = 2 + ""; c = error(27); d = newerror("alpha");
25     Error 27 caused errcount to exceed errmax
26
27     > print c, d
28     0 0
29
30     Here global variables c and d were created when compiling the line
31     but execution was aborted before the intended assignments to c and d.
32
33 LIMITS
34     0 <= num < 2^32
35
36 LINK LIBRARY
37     none
38
39 SEE ALSO
40     errcount, error, strerror, iserror, errno, newerror, errorcodes
41