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.
19 lines
394 B
19 lines
394 B
=proto
|
|
void *duk_get_pointer(duk_context *ctx, int index);
|
|
|
|
=stack
|
|
[ ... val! ... ]
|
|
|
|
=summary
|
|
<p>Get the pointer value at <code>index</code> as <code>void *</code> without
|
|
modifying or coercing the value. Returns <code>NULL</code> if the value is
|
|
not a pointer or the index is invalid.</p>
|
|
|
|
=example
|
|
void *ptr;
|
|
|
|
ptr = duk_get_pointer(ctx, -3);
|
|
printf("my pointer is: %p\n", ptr);
|
|
|
|
=tags
|
|
stack
|
|
|