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.
18 lines
430 B
18 lines
430 B
=proto
|
|
void duk_push_boolean(duk_context *ctx, int val);
|
|
|
|
=stack
|
|
[ ... ] -> [ ... true! ] (if val != 0)
|
|
[ ... ] -> [ ... false! ] (if val == 0)
|
|
|
|
=summary
|
|
<p>Push <tt>true</tt> (if val != 0) or <tt>false</tt> (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
|
|
|
|
|