Sets a callback that it is called when 32-bit LispWorks approaches its memory limit.
A function designator.
set-approaching-memory-limit-callback sets a callback that it is called when 32-bit LispWorks approaches its limit of memory.
The function callback must take two arguments: the size of the image and the margin of growth:
callback size margin
Normally callback should do something to prevent further growth of the image, or at least minimize the damage if LispWorks crashes when it actually reaches its limit (for example by saving data to disk).
callback can prevent an error being signalled by calling
If there is no callback (the default) or callback returns, LispWorks signals an error.
set-approaching-memory-limit-callback is not relevant to 64-bit LispWorks.
set-approaching-memory-limit-callback does not return a useful value.
LispWorks User Guide and Reference Manual - 20 Sep 2017