On 11/22/2013 12:18 PM, Benjamin Smedberg wrote:
> If you are writing code that wants to issue
> warnings when methods fail, please either use NS_WARNING directly or use
> the new NS_WARN_IF macro.
> 
> if (NS_WARN_IF(somethingthatshouldbetrue))
>   return NS_ERROR_INVALID_ARG;
> 
> if (NS_WARN_IF(NS_FAILED(rv))
>   return rv;

I think you mean "somethingthatshouldNOTbetrue" in the first example
there, right?

(Since it looks like we're warning & returning an error code, when that
placeholder is truthy.)
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to