[asterisk-dev] 0006889: [patch] Convert ast_verbose into macros

Christian Richter christian.richter at beronet.com
Wed Apr 5 12:31:21 MST 2006


I like this idea.

casper at casper.org.ua wrote:

>Hi!
>
>I'd like to hear back form the developer community if converting blocks like:
>     if (option_verbose > level)
>          ast_verbose("\n");
>or:
>     if ((cond) && (option_verbose > level))
>          ast_verbose("\n");
>into macros:
>     AST_VERBOSE(level, "");
>     AST_VERBOSE_IF(level, cond, "");
>would be a handy addition to avoid errors such as accidental inclusion of code
>into if controls and not terminating verbose output with "\n".
>
>The patch is available at
>http://bugs.digium.com/file_download.php?file_id=9813&type=bug
>_______________________________________________
>--Bandwidth and Colocation provided by Easynews.com --
>
>asterisk-dev mailing list
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>
>  
>




More information about the asterisk-dev mailing list