/[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 2596 by schoenebeck, Thu Jun 5 19:39:12 2014 UTC revision 2598 by schoenebeck, Fri Jun 6 12:38:54 2014 UTC
# Line 20  VMFnResult* VMEmptyResultFunction::error Line 20  VMFnResult* VMEmptyResultFunction::error
20      return &result;      return &result;
21  }  }
22    
23  void VMEmptyResultFunction::wrnMsg(const String& txt) {  VMFnResult* VMEmptyResultFunction::successResult() {
24      std::cout << "[ScriptVM] " << txt << std::endl;      result.flags = STMT_SUCCESS;
25        return &result;
26  }  }
27    
28  void VMEmptyResultFunction::errMsg(const String& txt) {  VMFnResult* VMIntResultFunction::errorResult(int i) {
29      std::cerr << "[ScriptVM] " << txt << std::endl;      result.flags = StmtFlags_t(STMT_ABORT_SIGNALLED | STMT_ERROR_OCCURRED);
30        result.value = i;
31        return &result;
32  }  }
33    
34  VMFnResult* VMEmptyResultFunction::successResult() {  VMFnResult* VMIntResultFunction::successResult(int i) {
35      result.flags = STMT_SUCCESS;      result.flags = STMT_SUCCESS;
36        result.value = i;
37      return &result;      return &result;
38  }  }
39    

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

  ViewVC Help
Powered by ViewVC