[Asterisk-code-review] Implement internal abstraction for iostreams (asterisk[master])
Richard Mudgett
asteriskteam at digium.com
Wed Oct 26 18:26:31 CDT 2016
Richard Mudgett has posted comments on this change. ( https://gerrit.asterisk.org/2932 )
Change subject: Implement internal abstraction for iostreams
......................................................................
Patch Set 5:
(1 comment)
https://gerrit.asterisk.org/#/c/2932/5/main/iostream.c
File main/iostream.c:
PS5, Line 455: static void iostream_dtor(void *cookie)
: {
: #ifdef AST_DEVMODE
: /* Since the ast_assert below is the only one using stream,
: * and ast_assert is only available with AST_DEVMODE, we
: * put this in a conditional to avoid compiler warnings. */
: struct ast_iostream *stream = cookie;
: #endif
:
: ast_assert(stream->fd == -1);
: }
> Does this compile when not using AST_DEVMODE? I know that the ast_assert ma
Only the C preprocessor evaluates macro parameters for string substitution. If the macro does not use the parameter then the compiler never sees it. So yes this will compile.
--
To view, visit https://gerrit.asterisk.org/2932
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Id916aef418b665ced6a7489aef74908b6e376e85
Gerrit-PatchSet: 5
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Timo Teräs <timo.teras at iki.fi>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Timo Teräs <timo.teras at iki.fi>
Gerrit-HasComments: Yes
More information about the asterisk-code-review
mailing list