secnet.h: provide helpful STRING macro (for preprocessor stringification)
[secnet] / secnet.h
index b60972f..6559ef3 100644 (file)
--- 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 */