=proto duk_c_function duk_get_c_function(duk_context *ctx, int index); =stack [ ... val! ... ] =summary
Get the Duktape/C function pointer (a duk_c_function
) from an
Ecmascript function object associated with a Duktape/C function. If the
value is not such a function or index
is invalid, returns NULL
.
If you prefer an error to be thrown for an invalid value or index, use
duk_require_c_function()
.