* @return ID of the function or -1 if no function with this index */
| 167 | * @return ID of the function or -1 if no function with this index |
| 168 | */ |
| 169 | int 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 |
nothing calls this directly
no test coverage detected