Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

NS_PRECONDITION

Summary

Macro

Has the same effect as NS_ASSERTION. Should be used to test conditions that the caller of a method ought to ensure.

Syntax

NS_PRECONDITION(expressionToTest, "error text");

See also

Document Tags and Contributors

 Contributors to this page: teoli, Nickolay
 Last updated by: Nickolay,