summaryrefslogtreecommitdiff
path: root/indra/test
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-02-23 10:11:21 -0500
committerNat Goodspeed <nat@lindenlab.com>2024-02-23 10:11:21 -0500
commit904d82402c8b927f5e09830d10247079fb4a94f4 (patch)
tree95256b06398914fc8a91b35e60d7de9a78d90a02 /indra/test
parent11f6fe1579a67377b5922338a72acaf348546fa3 (diff)
Allow debug.h to be #included even in normal viewer code.
debug.h #defines a couple of macros intended to enclose the entire body of a function to track its entry and (possibly exceptional) exit. The trouble is that these macros used to be called BEGIN and END, which is far too generic -- especially considering that END is used as an enum value in some parts of the viewer. Rename them DEBUGIN and DEBUGEND, which is ugly but unlikely to collide with anything else.
Diffstat (limited to 'indra/test')
-rw-r--r--indra/test/debug.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/test/debug.h b/indra/test/debug.h
index 162cd3da64..f92cce3008 100644
--- a/indra/test/debug.h
+++ b/indra/test/debug.h
@@ -90,15 +90,15 @@ private:
// of the Debug block.
#define DEBUG Debug debug(LL_PRETTY_FUNCTION)
-// These BEGIN/END macros are specifically for debugging output -- please
-// don't assume you must use such for coroutines in general! They only help to
-// make control flow (as well as exception exits) explicit.
-#define BEGIN \
+// These DEBUGIN/DEBUGEND macros are specifically for debugging output --
+// please don't assume you must use such for coroutines in general! They only
+// help to make control flow (as well as exception exits) explicit.
+#define DEBUGIN \
{ \
DEBUG; \
try
-#define END \
+#define DEBUGEND \
catch (...) \
{ \
debug("*** exceptional "); \