summaryrefslogtreecommitdiff
path: root/src/modules/sparkler/params_def.def
blob: cd274232a956f2ab18fd4f64153832015b21282b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifdef	PARAMS_DECLARE_ENUM
#define param(_member, _default, _sym, _ctxt_type, _va_type)	\
	_sym,
#endif

#ifdef PARAMS_DECLARE_STRUCT
#define param(_member, _default, _sym, _ctxt_type, _va_type)	\
	_ctxt_type _member;
#endif

#ifdef PARAMS_IMPLEMENT_SWITCH
#define param(_member, _default, _sym, _ctxt_type, _va_type)		\
	case _sym:							\
		ctxt->_member = va_arg(params, _va_type);		\
		break;
#endif

#ifdef PARAMS_ASSIGN_DEFAULTS
#define param(_member, _default, _sym, _ctxt_type, _va_type)		\
	ctxt->_member = _default;
#endif
© All Rights Reserved