You've already forked pgbackrest
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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user