--- linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp 2014/05/30 12:48:05 2581 +++ linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp 2014/06/06 12:38:54 2598 @@ -25,6 +25,18 @@ return &result; } +VMFnResult* VMIntResultFunction::errorResult(int i) { + result.flags = StmtFlags_t(STMT_ABORT_SIGNALLED | STMT_ERROR_OCCURRED); + result.value = i; + return &result; +} + +VMFnResult* VMIntResultFunction::successResult(int i) { + result.flags = STMT_SUCCESS; + result.value = i; + return &result; +} + VMFnResult* VMStringResultFunction::errorResult(const String& s) { result.flags = StmtFlags_t(STMT_ABORT_SIGNALLED | STMT_ERROR_OCCURRED); result.value = s;