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
466 B
23 lines
466 B
name: duk_get_pointer
|
|
|
|
proto: |
|
|
void *duk_get_pointer(duk_context *ctx, duk_idx_t idx);
|
|
|
|
stack: |
|
|
[ ... val! ... ]
|
|
|
|
summary: |
|
|
<p>Get the pointer value at <code>idx</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
|
|
|
|
introduced: 1.0.0
|
|
|