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 |
* |
* |
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) { |
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"); |