diff options
Diffstat (limited to 'files/pt-pt/ns_precondition/index.html')
-rw-r--r-- | files/pt-pt/ns_precondition/index.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/files/pt-pt/ns_precondition/index.html b/files/pt-pt/ns_precondition/index.html new file mode 100644 index 0000000000..6e151ef3b1 --- /dev/null +++ b/files/pt-pt/ns_precondition/index.html @@ -0,0 +1,20 @@ +--- +title: NS_PRECONDITION +slug: NS_PRECONDITION +tags: + - Macros_XPCOM + - XPCOM +translation_of: Mozilla/Tech/XPCOM/Reference/Glue_classes/NS_PRECONDITION +--- +<p> </p> +<h3 id="Sum.C3.A1rio" name="Sum.C3.A1rio">Sumário</h3> +<p><b>Macro</b></p> +<p>Tem o mesmo efeito que <a href="pt/NS_ASSERTION">NS_ASSERTION</a>. Deve ser usada para testar condições que o invocador dum método deve obedecer.</p> +<h3 id="Sintaxe" name="Sintaxe">Sintaxe</h3> +<pre class="eval">NS_PRECONDITION(expressão a testar, "texto de erro"); +</pre> +<h3 id="Ver_Tamb.C3.A9m" name="Ver_Tamb.C3.A9m">Ver Também</h3> +<ul> + <li><a href="pt/NS_ASSERTION">NS_ASSERTION</a></li> + <li><a href="pt/NS_POSTCONDITION">NS_POSTCONDITION</a></li> +</ul> |