/[svn]/linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.cpp

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

revision 3746 by schoenebeck, Fri Feb 14 15:35:53 2020 UTC revision 3747 by schoenebeck, Sun Feb 16 11:31:46 2020 UTC
# Line 525  namespace LinuxSampler { Line 525  namespace LinuxSampler {
525      // by_marks() function      // by_marks() function
526    
527      InstrumentScriptVMFunction_by_marks::InstrumentScriptVMFunction_by_marks(InstrumentScriptVM* parent)      InstrumentScriptVMFunction_by_marks::InstrumentScriptVMFunction_by_marks(InstrumentScriptVM* parent)
528          : m_vm(parent)          : m_vm(parent), m_result(NULL)
529      {      {
530      }      }
531    
# Line 538  namespace LinuxSampler { Line 538  namespace LinuxSampler {
538      }      }
539    
540      VMFnResult* InstrumentScriptVMFunction_by_marks::errorResult() {      VMFnResult* InstrumentScriptVMFunction_by_marks::errorResult() {
541          m_result.eventGroup = NULL;          m_result->eventGroup = NULL;
542          m_result.flags = StmtFlags_t(STMT_ABORT_SIGNALLED | STMT_ERROR_OCCURRED);          m_result->flags = StmtFlags_t(STMT_ABORT_SIGNALLED | STMT_ERROR_OCCURRED);
543          return &m_result;          return m_result;
544      }      }
545    
546      VMFnResult* InstrumentScriptVMFunction_by_marks::successResult(EventGroup* eventGroup) {      VMFnResult* InstrumentScriptVMFunction_by_marks::successResult(EventGroup* eventGroup) {
547          m_result.eventGroup = eventGroup;          m_result->eventGroup = eventGroup;
548          m_result.flags = STMT_SUCCESS;          m_result->flags = STMT_SUCCESS;
549          return &m_result;          return m_result;
550      }      }
551    
552      void InstrumentScriptVMFunction_by_marks::checkArgs(VMFnArgs* args,      void InstrumentScriptVMFunction_by_marks::checkArgs(VMFnArgs* args,
# Line 566  namespace LinuxSampler { Line 566  namespace LinuxSampler {
566          }          }
567      }      }
568    
569        VMFnResult* InstrumentScriptVMFunction_by_marks::allocResult(VMFnArgs* args) {
570            return new Result;
571        }
572    
573        void InstrumentScriptVMFunction_by_marks::bindResult(VMFnResult* res) {
574            m_result = dynamic_cast<Result*>(res);
575        }
576    
577        VMFnResult* InstrumentScriptVMFunction_by_marks::boundResult() const {
578            return m_result;
579        }
580    
581      VMFnResult* InstrumentScriptVMFunction_by_marks::exec(VMFnArgs* args) {      VMFnResult* InstrumentScriptVMFunction_by_marks::exec(VMFnArgs* args) {
582          vmint groupID = args->arg(0)->asInt()->evalInt();          vmint groupID = args->arg(0)->asInt()->evalInt();
583    

Legend:
Removed from v.3746  
changed lines
  Added in v.3747

  ViewVC Help
Powered by ViewVC