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

Method Find

source/script2.cpp:14687–14695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14685
14686
14687MsgMonitorStruct *MsgMonitorList::Find(UINT aMsg, IObject *aCallback, UCHAR aMsgType)
14688{
14689 for (int i = 0; i < mCount; ++i)
14690 if (mMonitor[i].msg == aMsg
14691 && mMonitor[i].func == aCallback // No need to check is_method, since it's impossible for an object and string to exist at the same address.
14692 && mMonitor[i].msg_type == aMsgType) // Checked last because it's nearly always true.
14693 return mMonitor + i;
14694 return NULL;
14695}
14696
14697
14698MsgMonitorStruct *MsgMonitorList::Find(UINT aMsg, LPTSTR aMethodName, UCHAR aMsgType)

Callers 1

BIF_DECLFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected