File: gr-util.h

package info (click to toggle)
notion 3%2B2012042300-1
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy
  • size: 4,724 kB
  • sloc: ansic: 45,614; makefile: 544; sh: 409; perl: 113
file content (21 lines) | stat: -rw-r--r-- 507 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * ion/ioncore/gr-util.h
 *
 * Copyright (c) Tuomo Valkonen 2007-2009. 
 *
 * See the included file LICENSE for details.
 */

#ifndef ION_IONCORE_GR_UTIL_H
#define ION_IONCORE_GR_UTIL_H

#include "gr.h"

#define GR_ATTR(X) grattr_##X
#define GR_DEFATTR(X) static GrAttr GR_ATTR(X) = STRINGID_NONE
#define GR_ALLOCATTR_BEGIN static bool alloced=FALSE; if(alloced) return
#define GR_ALLOCATTR_END alloced=TRUE
#define GR_ALLOCATTR(X) GR_ATTR(X) = stringstore_alloc(#X)

#endif /* ION_IONCORE_GR_UTIL_H */