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.

22 lines
513 B

name: duk_push_boolean
12 years ago
proto: |
void duk_push_boolean(duk_context *ctx, duk_bool_t val);
12 years ago
stack: |
[ ... ] -> [ ... true! ] (if val != 0)
[ ... ] -> [ ... false! ] (if val == 0)
12 years ago
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
introduced: 1.0.0