mirror of https://gerrit.osmocom.org/libosmocore
comment: utils: more accurately describe OSMO_STRINGIFY macro
Change-Id: I7b057c026f9df90608b7cbd12481ab9e7a41d88c
This commit is contained in:
parent
a73656501a
commit
dc75b114b4
|
@ -15,7 +15,9 @@
|
|||
#define OSMO_MAX(a, b) ((a) >= (b) ? (a) : (b))
|
||||
/*! Return the minimum of two specified values */
|
||||
#define OSMO_MIN(a, b) ((a) >= (b) ? (b) : (a))
|
||||
/*! Stringify the contents of a macro, e.g. a port number */
|
||||
/*! Stringify the name of a macro x, e.g. an FSM event name.
|
||||
* Note: if nested within another preprocessor macro, this will
|
||||
* stringify the value of x instead of its name. */
|
||||
#define OSMO_STRINGIFY(x) #x
|
||||
/*! Make a value_string entry from an enum value name */
|
||||
#define OSMO_VALUE_STRING(x) { x, #x }
|
||||
|
|
Loading…
Reference in New Issue