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.
30 lines
647 B
30 lines
647 B
=proto
|
|
void duk_push_heap_stash(duk_context *ctx);
|
|
|
|
=stack
|
|
[ ... ] -> [ ... stash! ]
|
|
|
|
=summary
|
|
<p>Push the heap stash object to the stack. The heap stash is an internal
|
|
object which can be used to store key/value pairs from C code so that they are
|
|
reachable for garbage collection, but are not accessible from Ecmascript code.
|
|
The stash is only accessible from C code; the same stash object is used by all
|
|
code sharing the same Duktape heap (even if they don't share the same global
|
|
object).</p>
|
|
|
|
=example
|
|
duk_push_heap_stash(ctx);
|
|
|
|
=tags
|
|
stack
|
|
stash
|
|
object
|
|
module
|
|
sandbox
|
|
|
|
=seealso
|
|
duk_push_global_stash
|
|
duk_push_thread_stash
|
|
|
|
=introduced
|
|
1.0.0
|
|
|