added no_memory callback that allows overriding the default abort behavior

This commit is contained in:
eihrul
2010-05-14 02:04:42 +00:00
parent 3ddbfb202d
commit c4138503f9
5 changed files with 22 additions and 14 deletions
+4 -3
View File
@@ -1,9 +1,10 @@
ENet CVS (May 13, 2010):
ENet 1.2.2 (May 13, 2010):
* now uses dispatch queues for event dispatch rather than potentially
unscalable array walking
* fixed propagation of memory failures so that an abort is no longer
required if malloc fails
* added no_memory callback that is called when a malloc attempt fails,
such that if no_memory returns rather than aborts (the default behavior),
then the error is propagated to the return value of the API calls
* now uses packed attribute for protocol structures on platforms with
strange alignment rules