| 357 | } |
| 358 | |
| 359 | bool cmRST::ProcessInclude(std::string file, Include type) |
| 360 | { |
| 361 | bool found = false; |
| 362 | if (this->IncludeDepth < 10) { |
| 363 | cmRST r(this->OS, this->DocRoot); |
| 364 | r.IncludeDepth = this->IncludeDepth + 1; |
| 365 | r.OutputLinePending = this->OutputLinePending; |
| 366 | if (type != Include::TocTree) { |
| 367 | r.Replace = this->Replace; |
| 368 | } |
| 369 | if (file[0] == '/') { |
| 370 | file = this->DocRoot + file; |
| 371 | } else { |
| 372 | file = this->DocDir + "/" + file; |
| 373 | } |
| 374 | found = r.ProcessFile(file, type == Include::Module); |
| 375 | if (type != Include::TocTree) { |
| 376 | this->Replace = r.Replace; |
| 377 | } |
| 378 | this->OutputLinePending = r.OutputLinePending; |
| 379 | } |
| 380 | return found; |
| 381 | } |
| 382 | |
| 383 | void cmRST::ProcessDirectiveParsedLiteral() |
| 384 | { |
no test coverage detected