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.
24 lines
426 B
24 lines
426 B
11 years ago
|
=proto
|
||
11 years ago
|
duk_bool_t duk_is_callable(duk_context *ctx, duk_idx_t index);
|
||
11 years ago
|
|
||
|
=stack
|
||
|
[ ... val! ... ]
|
||
|
|
||
|
=summary
|
||
11 years ago
|
<p>Return 1 if value at <code>index</code> is callable, otherwise returns 0.
|
||
|
Also returns 0 if <code>index</code> is invalid.</p>
|
||
11 years ago
|
|
||
|
<p>Currently this is the same as
|
||
11 years ago
|
<code><a href="#duk_is_function">duk_is_function()</a></code>.</p>
|
||
11 years ago
|
|
||
|
=example
|
||
|
if (duk_is_callable(ctx, -3)) {
|
||
|
/* ... */
|
||
|
}
|
||
11 years ago
|
|
||
|
=tags
|
||
|
stack
|
||
10 years ago
|
|
||
|
=introduced
|
||
|
1.0.0
|