/[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 2969 by schoenebeck, Mon Jul 18 09:42:28 2016 UTC revision 2970 by schoenebeck, Thu Jul 21 16:22:55 2016 UTC
# Line 188  VMFnResult* CoreVMFunction_sh_right::exe Line 188  VMFnResult* CoreVMFunction_sh_right::exe
188      return successResult(i >> n);      return successResult(i >> n);
189  }  }
190    
191    ///////////////////////////////////////////////////////////////////////////
192    // built-in script function:  min()
193    
194    VMFnResult* CoreVMFunction_min::exec(VMFnArgs* args) {
195        int l = args->arg(0)->asInt()->evalInt();
196        int r = args->arg(1)->asInt()->evalInt();
197        return successResult(l < r ? l : r);
198    }
199    
200    ///////////////////////////////////////////////////////////////////////////
201    // built-in script function:  max()
202    
203    VMFnResult* CoreVMFunction_max::exec(VMFnArgs* args) {
204        int l = args->arg(0)->asInt()->evalInt();
205        int r = args->arg(1)->asInt()->evalInt();
206        return successResult(l > r ? l : r);
207    }
208    
209  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.2969  
changed lines
  Added in v.2970

  ViewVC Help
Powered by ViewVC