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.
23 lines
458 B
23 lines
458 B
=proto
|
|
duk_idx_t duk_require_normalize_index(duk_context *ctx, duk_idx_t index);
|
|
|
|
=stack
|
|
[ ... val! ... ]
|
|
|
|
=summary
|
|
<p>Normalize argument index relative to the bottom of the current frame.
|
|
The resulting index will be 0 or greater and will be independent of
|
|
later stack modifications. If the input index is invalid, throws
|
|
an error.</p>
|
|
|
|
=example
|
|
duk_idx_t idx = duk_require_normalize_index(-3);
|
|
|
|
=tags
|
|
stack
|
|
|
|
=seealso
|
|
duk_normalize_index
|
|
|
|
=introduced
|
|
1.0.0
|
|
|