Fixed allocator debug output.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 19 Feb 2009 03:58:14 -0500
changeset 671 af7b7bfdfc2a
parent 670 8df3588cf14a
child 672 bcca8b3ae152
Fixed allocator debug output.
utils/mojoshader-compiler.c
--- a/utils/mojoshader-compiler.c	Thu Feb 19 03:39:19 2009 -0500
+++ b/utils/mojoshader-compiler.c	Thu Feb 19 03:58:14 2009 -0500
@@ -15,8 +15,10 @@
 static const char **include_paths = NULL;
 static unsigned int include_path_count = 0;
 
+#define MOJOSHADER_DEBUG_MALLOC 1
+
 #if MOJOSHADER_DEBUG_MALLOC
-static void *Malloc(int len)
+static void *Malloc(int len, void *d)
 {
     void *ptr = malloc(len + sizeof (int));
     int *store = (int *) ptr;
@@ -27,7 +29,7 @@
 } // Malloc
 
 
-static void Free(void *_ptr)
+static void Free(void *_ptr, void *d)
 {
     int *ptr = (((int *) _ptr) - 1);
     int len = *ptr;