]> git.tdb.fi Git - gldbg.git/blob - source/tmpalloc.h
dc673ca3e817c9bc16a5516e476075153a596feb
[gldbg.git] / source / tmpalloc.h
1 /* $Id$
2
3 This file is part of gldbg
4 Copyright © 2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
6 */
7
8 #ifndef TMPALLOC_H_
9 #define TMPALLOC_H_
10
11 /**
12 Allocates a temporary memory region.  The returned memory comes from a shared
13 pool and will get reused eventually.
14 */
15 extern void *tmpalloc(unsigned);
16
17 /**
18 Frees the shared pool used by tmpalloc.  It will be recreated if tmpalloc is
19 called again.
20 */
21 extern void tmpfree();
22
23 #endif