physfs_internal.h
changeset 691 71d9affe0d8a
parent 676 be1460fff07f
child 694 80bc8858b4ab
--- a/physfs_internal.h	Mon Mar 14 11:48:29 2005 +0000
+++ b/physfs_internal.h	Mon Mar 14 11:49:30 2005 +0000
@@ -26,6 +26,11 @@
 extern "C" {
 #endif
 
+/* Use the allocation hooks. */
+#define malloc(x) Do not use malloc() directly.
+#define realloc(x, y) Do not use realloc() directly.
+#define free(x) Do not use free() directly.
+
 
 /* The LANG section. */
 /*  please send questions/translations to Ryan: icculus@clutteredmind.org. */
@@ -1241,10 +1246,12 @@
 
 
 /*
- * Get the current allocator. Not valid before PHYSFS_init is called!
+ * The current allocator. Not valid before PHYSFS_init is called!
  */
-PHYSFS_Allocator *__PHYSFS_getAllocator(void);
+extern PHYSFS_Allocator __PHYSFS_AllocatorHooks;
 
+/* convenience macro to make this less cumbersome internally... */
+#define allocator __PHYSFS_AllocatorHooks
 
 /*--------------------------------------------------------------------------*/
 /*--------------------------------------------------------------------------*/