]> git.decadent.org.uk Git - ion3.git/blob - ioncore/gr-util.h
Update cfg_kludge_flash for Flash 10
[ion3.git] / ioncore / gr-util.h
1 /*
2  * ion/ioncore/gr-util.h
3  *
4  * Copyright (c) Tuomo Valkonen 2007-2009. 
5  *
6  * See the included file LICENSE for details.
7  */
8
9 #ifndef ION_IONCORE_GR_UTIL_H
10 #define ION_IONCORE_GR_UTIL_H
11
12 #include "gr.h"
13
14 #define GR_ATTR(X) grattr_##X
15 #define GR_DEFATTR(X) static GrAttr GR_ATTR(X) = STRINGID_NONE
16 #define GR_ALLOCATTR_BEGIN static bool alloced=FALSE; if(alloced) return
17 #define GR_ALLOCATTR_END alloced=TRUE
18 #define GR_ALLOCATTR(X) GR_ATTR(X) = stringstore_alloc(#X)
19
20 #endif /* ION_IONCORE_GR_UTIL_H */
21