| tcc_callback_ptr | R Documentation |
Returns an external pointer that can be passed to compiled C code
as user data for trampolines. Keep this handle (and the original
tcc_callback) alive for as long as C may call back.
The pointer handle keeps the underlying token storage alive until it is
garbage collected. Closing the original callback still invalidates the
callback registry entry, so C must not continue invoking it after
tcc_callback_close().
tcc_callback_ptr(callback)
callback |
A tcc_callback object |
Pointer arguments and return values are treated as external pointers.
Use tcc_read_bytes(), tcc_read_u8(), or tcc_read_f64()
to inspect pointed data when needed.
An external pointer (address of the callback token)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.