comment: utils: more accurately describe OSMO_STRINGIFY macro

Change-Id: I7b057c026f9df90608b7cbd12481ab9e7a41d88c
This commit is contained in:
Neels Hofmeyr 2017-12-09 05:51:42 +01:00 committed by Harald Welte
parent a73656501a
commit dc75b114b4
1 changed files with 3 additions and 1 deletions

View File

@ -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 }