summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/dimension.h')
-rw-r--r--libdimension/dimension.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdimension/dimension.h b/libdimension/dimension.h
index 22fb700..df50524 100644
--- a/libdimension/dimension.h
+++ b/libdimension/dimension.h
@@ -36,7 +36,8 @@ typedef enum {
DMNSN_SEVERITY_HIGH /* Always die */
} dmnsn_severity;
-#define dmnsn_error(severity, str) dmnsn_report_error(severity, __func__, str)
+#define dmnsn_error(severity, str) \
+ dmnsn_report_error(severity, __PRETTY_FUNCTION__, str)
void dmnsn_report_error(dmnsn_severity severity,
const char *func, const char *str);