name: duk_require_pointer proto: | void *duk_require_pointer(duk_context *ctx, duk_idx_t idx); stack: | [ ... val! ... ] summary: |
Like duk_get_pointer(), but throws an error if the value at idx is not a pointer or if the index is invalid.
duk_get_pointer()
idx