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 |
|
|
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, |
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 |
|
|