MCPcopy Create free account
hub / github.com/WinMerge/winmerge / GetMethodIDInScript

Function GetMethodIDInScript

Src/Plugins.cpp:169–187  ·  view source on GitHub ↗

* @return ID of the function or -1 if no function with this index */

Source from the content-addressed store, hash-verified

167 * @return ID of the function or -1 if no function with this index
168 */
169int GetMethodIDInScript(LPDISPATCH piDispatch, int methodIndex)
170{
171 int fncID;
172
173 vector<String> namesArray;
174 vector<int> IdArray;
175 const int nFnc = GetMethodsFromScript(piDispatch, namesArray, IdArray);
176
177 if (methodIndex < nFnc)
178 {
179 fncID = IdArray[methodIndex];
180 }
181 else
182 {
183 fncID = -1;
184 }
185
186 return fncID;
187}
188
189}
190

Callers

nothing calls this directly

Calls 1

GetMethodsFromScriptFunction · 0.85

Tested by

no test coverage detected