| 313 | //--------------------------------------------------------------------------- |
| 314 | |
| 315 | SimObject* findObject(const char* fileName, S32 declarationLine) |
| 316 | { |
| 317 | PROFILE_SCOPE(SimFindObjectByLine); |
| 318 | |
| 319 | if (!fileName) |
| 320 | return NULL; |
| 321 | |
| 322 | if (declarationLine < 0) |
| 323 | return NULL; |
| 324 | |
| 325 | if (!gRootGroup) |
| 326 | return NULL; |
| 327 | |
| 328 | return gRootGroup->findObjectByLineNumber(fileName, declarationLine, true); |
| 329 | } |
| 330 | |
| 331 | SimObject* findObject(const char* name) |
| 332 | { |
no test coverage detected