/[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 3056 by schoenebeck, Fri Dec 16 12:57:59 2016 UTC revision 3260 by schoenebeck, Wed May 31 21:07:44 2017 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (c) 2014 - 2016 Christian Schoenebeck and Andreas Persson   * Copyright (c) 2014 - 2017 Christian Schoenebeck and Andreas Persson
3   *   *
4   * http://www.linuxsampler.org   * http://www.linuxsampler.org
5   *   *
# Line 463  IntArrayVariable::IntArrayVariable(Parse Line 463  IntArrayVariable::IntArrayVariable(Parse
463      memset(&values[0], 0, size * sizeof(int));      memset(&values[0], 0, size * sizeof(int));
464  }  }
465    
466  IntArrayVariable::IntArrayVariable(ParserContext* ctx, int size, ArgsRef values)  IntArrayVariable::IntArrayVariable(ParserContext* ctx, int size, ArgsRef values, bool _bConst)
467      : Variable(ctx, 0, false)      : Variable(ctx, 0, _bConst)
468  {  {
469      this->values.resize(size);      this->values.resize(size);
470      for (int i = 0; i < values->argsCount(); ++i) {      for (int i = 0; i < values->argsCount(); ++i) {
# Line 724  bool While::evalLoopStartCondition() { Line 724  bool While::evalLoopStartCondition() {
724      return m_condition->evalInt();      return m_condition->evalInt();
725  }  }
726    
727    void SyncBlock::dump(int level) {
728        printIndents(level);
729        printf("sync {\n");
730        m_statements->dump(level+1);
731        printIndents(level);
732        printf("}\n");
733    }
734    
735    Statements* SyncBlock::statements() const {
736        return (m_statements) ? const_cast<Statements*>( &*m_statements ) : NULL;
737    }
738    
739  void Neg::dump(int level) {  void Neg::dump(int level) {
740      printIndents(level);      printIndents(level);
741      printf("Negative Expr\n");      printf("Negative Expr\n");

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

  ViewVC Help
Powered by ViewVC