mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Need to actually set the pool fail callback when allocating a pool.
This commit is contained in:
parent
797d75363b
commit
5254f279d4
@ -143,6 +143,9 @@ object_pool *pool_alloc(void (*fail)(const char *message))
|
|||||||
return NULL;
|
return NULL;
|
||||||
memset(pool, 0, sizeof(*pool));
|
memset(pool, 0, sizeof(*pool));
|
||||||
|
|
||||||
|
/* set the failure handler */
|
||||||
|
pool->fail = fail;
|
||||||
|
|
||||||
/* register the built-in types */
|
/* register the built-in types */
|
||||||
pool_type_register(pool, OBJTYPE_MEMORY, "Memory", memory_destruct);
|
pool_type_register(pool, OBJTYPE_MEMORY, "Memory", memory_destruct);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user