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.
21 lines
371 B
21 lines
371 B
name: duk_push_pointer
|
|
|
|
proto: |
|
|
void duk_push_pointer(duk_context *ctx, void *p);
|
|
|
|
stack: |
|
|
[ ... ] -> [ ... ptr! ]
|
|
|
|
summary: |
|
|
<p>Push <code>p</code> into the stack as a pointer value. Duktape won't
|
|
interpret the pointer in any manner.</p>
|
|
|
|
example: |
|
|
struct mystruct *p = /* ... */;
|
|
|
|
duk_push_pointer(ctx, (void *) p);
|
|
|
|
tags:
|
|
- stack
|
|
|
|
introduced: 1.0.0
|
|
|