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

casper at casper.org.ua casper at casper.org.ua
Wed Apr 5 11:58:19 MST 2006


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



More information about the asterisk-dev mailing list