From 45cfab8ca7db61ce4677e2e77e76b9266c57ab12 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 13 Jul 2011 23:53:55 +0100 Subject: [PATCH] secnet.h: provide helpful STRING macro (for preprocessor stringification) Uses preprocessor stringification; can be helpful for rendering compile-time constants (eg compile time limit macros) for messages, etc. Not used yet; will be used later in this series. Signed-off-by: Ian Jackson --- secnet.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/secnet.h b/secnet.h index b60972f..6559ef3 100644 --- a/secnet.h +++ b/secnet.h @@ -495,4 +495,7 @@ extern void log_from_fd(int fd, cstring_t prefix, struct log_if *log); /***** END of log functions *****/ +#define STRING2(x) #x +#define STRING(x) STRING2(x) + #endif /* secnet_h */ -- 2.30.2