blob: 83f0664635f4ecd01c0c4f81ab0490f97fa4b64e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/**
* @file getter.h
* @author Paul Oliver
*
* We declare a helper macro for easy 'getting' of module state variables. Other
* similar, more specific macros are defined inside the module sources. Don't
* repeat yourself! :-)
*/
#ifndef SALIS_GETTER_H
#define SALIS_GETTER_H
#define UINT32_GETTER(mod, name) \
uint32 sal_##mod##_get_##name(void) \
{ \
assert(g_is_init); \
return g_##name; \
}
#endif
|