- Returns:
- The previous setting
- Parameters:
-
| no | The new setting (0=create none (the default), negative number imply randomness) |
Sets a new global error creation count for the current thread. Under debug builds, all
FXERRH() assertion tests call an internal routine which increments a count which if passed, triggers the exception anyway. This permits bulletproofing your code and testing that it handles exceptions being thrown correctly (for best use, combine with your favourite memory leak detector etc).
Probably the most useful setting is to negative numbers which internally sets the actual count to a random number between 1 and abs(val). Setting to zero disables the feature.
The exceptions will keep being thrown until disabled ie; the count restarts or rerandomises.