mymemory: define the "opposite" of MEMALLOC
authorBrian Norris <banorris@uci.edu>
Thu, 24 May 2012 17:32:19 +0000 (10:32 -0700)
committerBrian Norris <banorris@uci.edu>
Thu, 24 May 2012 17:32:19 +0000 (10:32 -0700)
We may want an identifier to show that a particular class is intended to be
snapshotted.

mymemory.h

index 85ef7b0e67528be88d885e85c902723ebe47c5fa..afaffa458300293a9b5691220ace2dc4533ef97f 100644 (file)
@@ -17,6 +17,9 @@
                MYFREE(p);\
        }
 
+/* Empty define; represents opposite of MEMALLOC */
+#define SNAPSHOTALLOC
+
 void *MYMALLOC(size_t size);
 void MYFREE(void *ptr);