name: duk_get_pointer proto: | void *duk_get_pointer(duk_context *ctx, duk_idx_t idx); stack: | [ ... val! ... ] summary: |

Get the pointer value at idx as void * without modifying or coercing the value. Returns NULL if the value is not a pointer or the index is invalid.

example: | void *ptr; ptr = duk_get_pointer(ctx, -3); printf("my pointer is: %p\n", ptr); tags: - stack introduced: 1.0.0