src/physfs.c
changeset 973 48ad89e6042c
parent 972 254427fc42ab
child 975 653a53e51931
--- a/src/physfs.c	Fri Mar 27 15:10:42 2009 -0400
+++ b/src/physfs.c	Sat Mar 28 16:15:03 2009 -0400
@@ -2153,6 +2153,13 @@
 } /* PHYSFS_setAllocator */
 
 
+const PHYSFS_Allocator *PHYSFS_getAllocator(void)
+{
+    BAIL_IF_MACRO(!initialized, ERR_NOT_INITIALIZED, NULL);
+    return &allocator;
+} /* PHYSFS_getAllocator */
+
+
 static void *mallocAllocatorMalloc(PHYSFS_uint64 s)
 {
     BAIL_IF_MACRO(__PHYSFS_ui64FitsAddressSpace(s), ERR_OUT_OF_MEMORY, NULL);