]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - error.h
bash-5.2 distribution sources and documentation
[thirdparty/bash.git] / error.h
diff --git a/error.h b/error.h
index 30828095b13b51eabbc59a2d406b35bdcd3ade5f..785c1deb5a9f80ab39eee3d5d02aea3af4eb6293 100644 (file)
--- a/error.h
+++ b/error.h
@@ -50,6 +50,9 @@ extern void internal_error PARAMS((const char *, ...))  __attribute__((__format_
 /* Report an internal warning. */
 extern void internal_warning PARAMS((const char *, ...))  __attribute__((__format__ (printf, 1, 2)));
 
+/* Report an internal warning for debugging purposes. */
+extern void internal_debug PARAMS((const char *, ...))  __attribute__((__format__ (printf, 1, 2)));
+
 /* Report an internal informational notice. */
 extern void internal_inform PARAMS((const char *, ...))  __attribute__((__format__ (printf, 1, 2)));
 
@@ -70,4 +73,10 @@ extern void err_badarraysub PARAMS((const char *));
 extern void err_unboundvar PARAMS((const char *));
 extern void err_readonly PARAMS((const char *));
 
+#ifdef DEBUG
+#  define INTERNAL_DEBUG(x)    internal_debug x
+#else
+#  define INTERNAL_DEBUG(x)
+#endif
+
 #endif /* !_ERROR_H_ */