1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-01 00:25:06 +02:00

Move MACRO_TO_STR() to common/debug.h.

This macro is handy for constructing static message strings so move it where the core code can see it.
This commit is contained in:
David Steele
2019-01-27 11:34:12 +02:00
parent 4027123ef1
commit 82c2d615b3
3 changed files with 13 additions and 8 deletions

View File

@ -25,6 +25,14 @@ Extern variables that are needed for unit testing
static
#endif
/***********************************************************************************************************************************
Convert a macro to a string
***********************************************************************************************************************************/
#define MACRO_TO_STR_INNER(macro) \
#macro
#define MACRO_TO_STR(macro) \
MACRO_TO_STR_INNER(macro)
/***********************************************************************************************************************************
Base function debugging macros