| 76 | } |
| 77 | |
| 78 | string CScriptBuilder::GetSectionName(unsigned int idx) const |
| 79 | { |
| 80 | if( idx >= includedScripts.size() ) return ""; |
| 81 | |
| 82 | #ifdef _WIN32 |
| 83 | set<string, ci_less>::const_iterator it = includedScripts.begin(); |
| 84 | #else |
| 85 | set<string>::const_iterator it = includedScripts.begin(); |
| 86 | #endif |
| 87 | while( idx-- > 0 ) it++; |
| 88 | return *it; |
| 89 | } |
| 90 | |
| 91 | // Returns 1 if the section was included |
| 92 | // Returns 0 if the section was not included because it had already been included before |