/[svn]/linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/CoreVMFunctions.cpp

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

revision 2581 by schoenebeck, Fri May 30 12:48:05 2014 UTC revision 2598 by schoenebeck, Fri Jun 6 12:38:54 2014 UTC
# Line 25  VMFnResult* VMEmptyResultFunction::succe Line 25  VMFnResult* VMEmptyResultFunction::succe
25      return &result;      return &result;
26  }  }
27    
28    VMFnResult* VMIntResultFunction::errorResult(int i) {
29        result.flags = StmtFlags_t(STMT_ABORT_SIGNALLED | STMT_ERROR_OCCURRED);
30        result.value = i;
31        return &result;
32    }
33    
34    VMFnResult* VMIntResultFunction::successResult(int i) {
35        result.flags = STMT_SUCCESS;
36        result.value = i;
37        return &result;
38    }
39    
40  VMFnResult* VMStringResultFunction::errorResult(const String& s) {  VMFnResult* VMStringResultFunction::errorResult(const String& s) {
41      result.flags = StmtFlags_t(STMT_ABORT_SIGNALLED | STMT_ERROR_OCCURRED);      result.flags = StmtFlags_t(STMT_ABORT_SIGNALLED | STMT_ERROR_OCCURRED);
42      result.value = s;      result.value = s;

Legend:
Removed from v.2581  
changed lines
  Added in v.2598

  ViewVC Help
Powered by ViewVC