Reintroduce 'SCM_MEMORY_ERROR' in terms of 'scm_report_out_of_memory'.

Suggested by Dale P. Smith <dsmich@roadrunner.com>.

* libguile/deprecated.h (SCM_MEMORY_ERROR): New macro.
* doc/ref/api-control.texi (Dynamic Wind): Use 'scm_report_out_of_memory'.
This commit is contained in:
Ludovic Courtès 2020-02-11 14:47:16 +01:00
commit 41d470f0e9
2 changed files with 4 additions and 2 deletions

View file

@ -1669,7 +1669,7 @@ scm_foo (SCM s1, SCM s2)
c_res = foo (c_s1, c_s2);
if (c_res == NULL)
scm_misc_error ("foo", "out of memory!", SCM_EOL);
scm_report_out_of_memory ();
scm_dynwind_end ();