]> git.tdb.fi Git - gldbg.git/blobdiff - source/tmpalloc.h
Print the contents of arrays and references
[gldbg.git] / source / tmpalloc.h
diff --git a/source/tmpalloc.h b/source/tmpalloc.h
new file mode 100644 (file)
index 0000000..dc673ca
--- /dev/null
@@ -0,0 +1,23 @@
+/* $Id$
+
+This file is part of gldbg
+Copyright © 2009  Mikko Rasa, Mikkosoft Productions
+Distributed under the GPL
+*/
+
+#ifndef TMPALLOC_H_
+#define TMPALLOC_H_
+
+/**
+Allocates a temporary memory region.  The returned memory comes from a shared
+pool and will get reused eventually.
+*/
+extern void *tmpalloc(unsigned);
+
+/**
+Frees the shared pool used by tmpalloc.  It will be recreated if tmpalloc is
+called again.
+*/
+extern void tmpfree();
+
+#endif