I filed bug 957201 for NS_WARN_IF_FAILED.

Andrew

----- Original Message -----
> On 01/07/2014 02:58 AM, Karl Tomlinson wrote:
> > smaug <sm...@welho.com> writes:
> >
> >> Why this deprecation?
> >
> > NS_ENSURE_ macros hid return paths.
> > Also many people didn't understand that they issued warnings, and
> > so used the macros for expected return paths.
> >
> > Was there some useful functionality that is not provided by the
> > replacements?
> >
> 
> 
> no, since it is always possible to expand those macros.
> However
> if (NS_WARN_IF(NS_FAILED(rv)) {
>    return rv;
> }
> is super ugly.
> 
> Hopefully something like NS_WARN_IF_FAILED(rv) could be added.
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
> 
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to