blob: 41c0d2a8556c09a98f6e0ded5d7e76697305bc85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* -----------------------------------------------------------------------------
*
* User-overridable RTS hooks.
*
* ---------------------------------------------------------------------------*/
#include "PosixSource.h"
#include "Rts.h"
#include <stdio.h>
void
MallocFailHook (lnat request_size /* in bytes */, char *msg)
{
fprintf(stderr, "malloc: failed on request for %lu bytes; message: %s\n", request_size, msg);
}
|