1
#ifndef CHILON_ATTRIBUTE_HPP
2
#define CHILON_ATTRIBUTE_HPP
3
/**
4
 * @file defines the attribute naming scheme.
5
 */
6
7
/// Macro for making an attribute from a root name. Defaults to root name
8
/// with "_" appended which seems quite popular and is the convention in
9
/// chilon itself.
10
#ifndef CHILON_ATTRIBUTE
11
#define CHILON_ATTRIBUTE(root) root##_
12
#endif
13
14
/// Macro for making a type from a root name. Defaults to the root name itself
15
/// which is quite popular, but some people like to use a suffix of
16
/// "_t".
17
#ifndef CHILON_TYPE
18
#define CHILON_TYPE(root) root
19
#endif
20
21
#endif