[Asterisk-code-review] Scope Trace: Update stub defines (asterisk[13])

George Joseph asteriskteam at digium.com
Sun Jul 5 19:03:58 CDT 2020


George Joseph has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14628 )


Change subject: Scope Trace: Update stub defines
......................................................................

Scope Trace: Update stub defines

Reminder:  13 doesn't support scope tracing but we're keeping
the stub defines consistent across branches.

Change-Id: If00733a4d5a4e829cbb4c934bcc2f4c1a80dab81
---
M include/asterisk/logger.h
1 file changed, 10 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/28/14628/1

diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h
index 9562af4..f3cefd3 100644
--- a/include/asterisk/logger.h
+++ b/include/asterisk/logger.h
@@ -592,6 +592,8 @@
 	AST_TRACE_INDENT_DEC_BEFORE,
 	/*! Decrement the indent after printing the message */
 	AST_TRACE_INDENT_DEC_AFTER,
+	/*! Set the indent to the one provided */
+	AST_TRACE_INDENT_PROVIDED,
 	/*! Don't use or alter the level */
 	AST_TRACE_INDENT_NONE,
 };
@@ -603,12 +605,17 @@
 #if 1
 #define ast_trace_raw(__level, __indent_type, ...)
 #define ast_trace(__level, ...)
+#define ast_trace_get_indent() (0)
+#define ast_trace_set_indent(indent)
+#define ast_trace_inc_indent()
+#define ast_trace_dec_indent()
 #define SCOPE_TRACE(__level, ...)
 #define SCOPE_ENTER(level, ...)
+#define SCOPE_ENTER_TASK(level, indent, ...)
 #define SCOPE_EXIT(...)
-#define SCOPE_EXIT_EXPR(__expr, ...)
-#define SCOPE_EXIT_RTN(...)
-#define SCOPE_EXIT_RTN_VALUE(__return_value, ...)
+#define SCOPE_EXIT_EXPR(__expr, ...) __expr
+#define SCOPE_EXIT_RTN(...) return
+#define SCOPE_EXIT_RTN_VALUE(__return_value, ...) return __return_value
 #endif
 
 #if defined(__cplusplus) || defined(c_plusplus)

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14628
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: If00733a4d5a4e829cbb4c934bcc2f4c1a80dab81
Gerrit-Change-Number: 14628
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200705/f0c170cc/attachment.html>


More information about the asterisk-code-review mailing list