program
| 8 | |
| 9 | // program |
| 10 | vector<ReaderMacro*> Program::getReaderMacro ( const string & name ) const { |
| 11 | vector<ReaderMacro*> macros; |
| 12 | string moduleName, markupName; |
| 13 | splitTypeName(name, moduleName, markupName); |
| 14 | auto tmod = thisModule.get(); |
| 15 | auto modMacro = [&](Module * mod) -> bool { |
| 16 | if ( thisModule->isVisibleDirectly(mod) && mod!=tmod ) { |
| 17 | auto it = mod->readMacros.find(markupName); |
| 18 | if ( it != mod->readMacros.end() ) { |
| 19 | macros.push_back(it->second.get()); |
| 20 | } |
| 21 | } |
| 22 | return true; |
| 23 | }; |
| 24 | library.foreach(modMacro, moduleName); |
| 25 | return macros; |
| 26 | } |
| 27 | |
| 28 | int Program::getContextStackSize() const { |
| 29 | return options.getIntOption("stack", policies.stack); |