void pcre2_jit_stack_assign(pcre2_match_context *mcontext, " pcre2_jit_callback callback_function, void *callback_data);".
If mcontext is NULL, the function returns immediately, without doing anything.
If callback is NULL and callback_data is NULL, an internal 32KiB block on the machine stack is used.
If callback is NULL and callback_data is not NULL, callback_data must be a valid JIT stack, the result of calling pcre2_jit_stack_create().
If callback not NULL, it is called with callback_data as an argument at the start of matching, in order to set up a JIT stack. If the result is NULL, the internal 32KiB stack is used; otherwise the return value must be a valid JIT stack, the result of calling pcre2_jit_stack_create().
You may safely use the same JIT stack for multiple patterns, as long as they
are all matched in the same thread. In a multithread application, each thread
must use its own JIT stack. For more details, see the
HREF
pcre2jit
page.
There is a complete description of the PCRE2 native API in the
HREF
pcre2api
page and a description of the POSIX API in the
HREF
pcre2posix
page.