Menu

[94f52a]: / attribute.hpp  Maximize  Restore  History

Download this file

22 lines (18 with data), 574 Bytes

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