You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
438 B

=proto
void duk_push_boolean(duk_context *ctx, int val);
=stack
[ ... ] -> [ ... true! ] (if val != 0)
[ ... ] -> [ ... false! ] (if val == 0)
=summary
<p>Push <code>true</code> (if val != 0) or <code>false</code> (if val == 0) to the stack.</p>
=example
duk_push_boolean(ctx, 0); /* -> [ ... false ] */
duk_push_boolean(ctx, 1); /* -> [ ... false true ] */
duk_push_boolean(ctx, -3); /* -> [ ... false true true ] */
=tags
stack