From f68aff1f89037a423b668a13ca875c3c1229e0d3 Mon Sep 17 00:00:00 2001 From: imonroe Date: Wed, 25 Oct 2006 16:53:14 +0000 Subject: [PATCH] Mark wanted some less verbose function-name macros. --- .../src/modules/core/include/LiveSupport/Core/Debug.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/campcaster/src/modules/core/include/LiveSupport/Core/Debug.h b/campcaster/src/modules/core/include/LiveSupport/Core/Debug.h index 67a959c50..fbc46fc5d 100644 --- a/campcaster/src/modules/core/include/LiveSupport/Core/Debug.h +++ b/campcaster/src/modules/core/include/LiveSupport/Core/Debug.h @@ -239,4 +239,10 @@ namespace Debug } } } } //LiveSupport and Core namespaces -#define DEBUG_BLOCK LiveSupport::Core::Debug::Block uniquelyNamedStackAllocatedStandardBlock( __PRETTY_FUNCTION__ ); +#define DEBUG_BLOCK Debug::Block uniquelyNamedStackAllocatedStandardBlock( __PRETTY_FUNCTION__ ); + +/// Standard function announcer +#define DEBUG_FUNC_INFO { debug() << "[" __PRETTY_FUNCTION__ "]" << endl; } + +/// Announce a line +#define DEBUG_LINE_INFO { debug() << "[" __PRETTY_FUNCTION__ "]" << "Line: " << __LINE__ << endl; }