commit | 18080960e1f85bb315d927d18e52656973834813 | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | Fri Dec 16 13:43:54 2016 +0100 |
committer | Harald Welte <laforge@gnumonks.org> | Wed Dec 21 10:37:13 2016 +0000 |
tree | 8afb5e09cfcfb74390d3fdaa37a8ca5a4ee33bc5 | |
parent | 4e72ee0d0f678ec91dee5ad33e8796b56e8c078d [diff] |
utils.h: add OSMO_STRINGIFY and OSMO_VALUE_STRING macros OSMO_STRINGIFY particularly allows putting port numbers from a #define into VTY doc strings, like: #define FOO_PORT 2342 DEFUN(..., "Foo UDP port (default: " OSMO_STRINGIFY(FOO_PORT) ")\n") OSMO_VALUE_STRING creates value_string items with the string being exactly the enum value's name. Replaces a similar macro def in fsm.c Change-Id: I857af45ae602bb9a647ba26cf8b0d1b23403b54c