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
580 B
23 lines
580 B
name: duk_to_uint32
|
|
|
|
proto: |
|
|
duk_uint32_t duk_to_uint32(duk_context *ctx, duk_idx_t idx);
|
|
|
|
stack: |
|
|
[ ... val! ... ] -> [ ... ToUint32(val)! ... ]
|
|
|
|
summary: |
|
|
<p>Replace the value at <code>idx</code> with an ECMAScript
|
|
<a href="http://www.ecma-international.org/ecma-262/5.1/#sec-9.6">ToUint32()</a>
|
|
coerced value. Returns the coerced value. If <code>idx</code> is invalid, throws
|
|
an error.</p>
|
|
|
|
<div include="ref-custom-type-coercion.html" />
|
|
|
|
example: |
|
|
printf("ToUint32(): %lu\n", (unsigned long) duk_to_uint32(ctx, -3));
|
|
|
|
tags:
|
|
- stack
|
|
|
|
introduced: 1.0.0
|
|
|