/[svn]/linuxsampler/trunk/src/scriptvm/tree.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/tree.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3260 by schoenebeck, Wed May 31 21:07:44 2017 UTC revision 3285 by schoenebeck, Thu Jun 22 10:45:38 2017 UTC
# Line 977  void ParserContext::addWrn(int firstLine Line 977  void ParserContext::addWrn(int firstLine
977      vIssues.push_back(w);      vIssues.push_back(w);
978  }  }
979    
980    void ParserContext::addPreprocessorComment(int firstLine, int lastLine, int firstColumn, int lastColumn) {
981        CodeBlock block;
982        block.firstLine = firstLine;
983        block.lastLine = lastLine;
984        block.firstColumn = firstColumn;
985        block.lastColumn = lastColumn;
986        vPreprocessorComments.push_back(block);
987    }
988    
989  bool ParserContext::setPreprocessorCondition(const char* name) {  bool ParserContext::setPreprocessorCondition(const char* name) {
990      if (builtinPreprocessorConditions.count(name)) return false;      if (builtinPreprocessorConditions.count(name)) return false;
991      if (userPreprocessorConditions.count(name)) return false;      if (userPreprocessorConditions.count(name)) return false;
# Line 1008  std::vector<ParserIssue> ParserContext:: Line 1017  std::vector<ParserIssue> ParserContext::
1017      return vWarnings;      return vWarnings;
1018  }  }
1019    
1020    std::vector<CodeBlock> ParserContext::preprocessorComments() const {
1021        return vPreprocessorComments;
1022    }
1023    
1024  VMEventHandler* ParserContext::eventHandler(uint index) {  VMEventHandler* ParserContext::eventHandler(uint index) {
1025      if (!handlers) return NULL;      if (!handlers) return NULL;
1026      return handlers->eventHandler(index);      return handlers->eventHandler(index);

Legend:
Removed from v.3260  
changed lines
  Added in v.3285

  ViewVC Help
Powered by ViewVC