summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/macro.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/macro.h')
-rw-r--r--src/pulsecore/macro.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pulsecore/macro.h b/src/pulsecore/macro.h
index 4b62dd21..41af19c9 100644
--- a/src/pulsecore/macro.h
+++ b/src/pulsecore/macro.h
@@ -152,4 +152,8 @@ typedef int pa_bool_t;
#define PA_PATH_SEP_CHAR '/'
#endif
+static inline const char *pa_strnull(const char *x) {
+ return x ? x : "(null)";
+}
+
#endif