MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / pcret_resolve_user_callout

Function pcret_resolve_user_callout

source/script2.cpp:11901–11908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11899
11900
11901void *pcret_resolve_user_callout(LPCTSTR aCalloutParam, int aCalloutParamLength)
11902{
11903 // If no Func is found, pcre will handle the case where aCalloutParam is a pure integer.
11904 // In that case, the callout param becomes an integer between 0 and 255. No valid pointer
11905 // could be in this range, but we must take care to check (ptr>255) rather than (ptr!=NULL).
11906 auto callout_var = g_script.FindVar(aCalloutParam, aCalloutParamLength);
11907 return callout_var ? callout_var->ToObject() : nullptr;
11908}
11909
11910struct RegExCalloutData // L14: Used by BIF_RegEx to pass necessary info to RegExCallout.
11911{

Callers

nothing calls this directly

Calls 2

FindVarMethod · 0.80
ToObjectMethod · 0.45

Tested by

no test coverage detected