--- linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp 2014/06/05 19:39:12 2596 +++ linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp 2014/06/06 12:38:54 2598 @@ -20,16 +20,20 @@ return &result; } -void VMEmptyResultFunction::wrnMsg(const String& txt) { - std::cout << "[ScriptVM] " << txt << std::endl; +VMFnResult* VMEmptyResultFunction::successResult() { + result.flags = STMT_SUCCESS; + return &result; } -void VMEmptyResultFunction::errMsg(const String& txt) { - std::cerr << "[ScriptVM] " << txt << std::endl; +VMFnResult* VMIntResultFunction::errorResult(int i) { + result.flags = StmtFlags_t(STMT_ABORT_SIGNALLED | STMT_ERROR_OCCURRED); + result.value = i; + return &result; } -VMFnResult* VMEmptyResultFunction::successResult() { +VMFnResult* VMIntResultFunction::successResult(int i) { result.flags = STMT_SUCCESS; + result.value = i; return &result; }