mirror of https://github.com/svaarala/duktape.git
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.
21 lines
514 B
21 lines
514 B
name: duk_push_boolean
|
|
|
|
proto: |
|
|
void duk_push_boolean(duk_context *ctx, duk_bool_t 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, 123); /* -> [ ... false true true ] */
|
|
|
|
tags:
|
|
- stack
|
|
|
|
introduced: 1.0.0
|
|
|