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

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

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

revision 3584 by schoenebeck, Fri Aug 30 13:33:32 2019 UTC revision 3585 by schoenebeck, Fri Aug 30 17:51:24 2019 UTC
# Line 202  public: Line 202  public:
202      vmint minRequiredArgs() const OVERRIDE { return 1; }      vmint minRequiredArgs() const OVERRIDE { return 1; }
203      vmint maxAllowedArgs() const OVERRIDE { return 1; }      vmint maxAllowedArgs() const OVERRIDE { return 1; }
204      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;
     ExprType_t argType(vmint iArg) const OVERRIDE { return STRING_EXPR; }  
205      VMFnResult* exec(VMFnArgs* args) OVERRIDE;      VMFnResult* exec(VMFnArgs* args) OVERRIDE;
206  };  };
207    
# Line 215  public: Line 214  public:
214      vmint minRequiredArgs() const OVERRIDE { return 0; }      vmint minRequiredArgs() const OVERRIDE { return 0; }
215      vmint maxAllowedArgs() const OVERRIDE;      vmint maxAllowedArgs() const OVERRIDE;
216      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }  
217      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE;      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE;
218      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE;      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE;
219      bool acceptsArgFinal(vmint iArg) const OVERRIDE;      bool acceptsArgFinal(vmint iArg) const OVERRIDE;
# Line 235  public: Line 233  public:
233      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;
234      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE;      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE;
235      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE;      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE;
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }  
236      VMFnResult* exec(VMFnArgs* args) OVERRIDE;      VMFnResult* exec(VMFnArgs* args) OVERRIDE;
237  protected:  protected:
238      ScriptVM* vm;      ScriptVM* vm;
# Line 255  public: Line 252  public:
252      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
253      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
254      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }  
255      VMFnResult* exec(VMFnArgs* args) OVERRIDE;      VMFnResult* exec(VMFnArgs* args) OVERRIDE;
256  };  };
257    
# Line 274  public: Line 270  public:
270      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
271      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
272      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }  
273      void checkArgs(VMFnArgs* args, std::function<void(String)> err,      void checkArgs(VMFnArgs* args, std::function<void(String)> err,
274                                     std::function<void(String)> wrn) OVERRIDE;                                     std::function<void(String)> wrn) OVERRIDE;
275      VMFnResult* exec(VMFnArgs* args) OVERRIDE;      VMFnResult* exec(VMFnArgs* args) OVERRIDE;
# Line 290  public: Line 285  public:
285      vmint minRequiredArgs() const OVERRIDE { return 1; }      vmint minRequiredArgs() const OVERRIDE { return 1; }
286      vmint maxAllowedArgs() const OVERRIDE { return 1; }      vmint maxAllowedArgs() const OVERRIDE { return 1; }
287      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_ARR_EXPR; }  
288      VMFnResult* exec(VMFnArgs* args) OVERRIDE;      VMFnResult* exec(VMFnArgs* args) OVERRIDE;
289  };  };
290    
# Line 308  public: Line 302  public:
302      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
303      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
304      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }  
305      bool modifiesArg(vmint iArg) const OVERRIDE { return true; }      bool modifiesArg(vmint iArg) const OVERRIDE { return true; }
306      void checkArgs(VMFnArgs* args, std::function<void(String)> err,      void checkArgs(VMFnArgs* args, std::function<void(String)> err,
307                                     std::function<void(String)> wrn) OVERRIDE;                                     std::function<void(String)> wrn) OVERRIDE;
# Line 329  public: Line 322  public:
322      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
323      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
324      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }  
325      bool modifiesArg(vmint iArg) const OVERRIDE { return true; }      bool modifiesArg(vmint iArg) const OVERRIDE { return true; }
326      void checkArgs(VMFnArgs* args, std::function<void(String)> err,      void checkArgs(VMFnArgs* args, std::function<void(String)> err,
327                                     std::function<void(String)> wrn) OVERRIDE;                                     std::function<void(String)> wrn) OVERRIDE;
# Line 347  public: Line 339  public:
339      vmint minRequiredArgs() const OVERRIDE { return 3; }      vmint minRequiredArgs() const OVERRIDE { return 3; }
340      vmint maxAllowedArgs() const OVERRIDE { return 3; }      vmint maxAllowedArgs() const OVERRIDE { return 3; }
341      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }  
342      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
343      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
344      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }
# Line 366  public: Line 357  public:
357      vmint minRequiredArgs() const OVERRIDE { return 2; }      vmint minRequiredArgs() const OVERRIDE { return 2; }
358      vmint maxAllowedArgs() const OVERRIDE { return 2; }      vmint maxAllowedArgs() const OVERRIDE { return 2; }
359      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR; }      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR; }
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }  
360      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }
361      VMFnResult* exec(VMFnArgs* args) OVERRIDE;      VMFnResult* exec(VMFnArgs* args) OVERRIDE;
362  };  };
# Line 381  public: Line 371  public:
371      vmint minRequiredArgs() const OVERRIDE { return 2; }      vmint minRequiredArgs() const OVERRIDE { return 2; }
372      vmint maxAllowedArgs() const OVERRIDE { return 2; }      vmint maxAllowedArgs() const OVERRIDE { return 2; }
373      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR; }      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR; }
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }  
374      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }
375      VMFnResult* exec(VMFnArgs* args) OVERRIDE;      VMFnResult* exec(VMFnArgs* args) OVERRIDE;
376  };  };
# Line 398  public: Line 387  public:
387      vmint minRequiredArgs() const OVERRIDE { return 2; }      vmint minRequiredArgs() const OVERRIDE { return 2; }
388      vmint maxAllowedArgs() const OVERRIDE { return 2; }      vmint maxAllowedArgs() const OVERRIDE { return 2; }
389      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }  
390      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
391      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
392      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }
# Line 419  public: Line 407  public:
407      vmint minRequiredArgs() const OVERRIDE { return 2; }      vmint minRequiredArgs() const OVERRIDE { return 2; }
408      vmint maxAllowedArgs() const OVERRIDE { return 2; }      vmint maxAllowedArgs() const OVERRIDE { return 2; }
409      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }  
410      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
411      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
412      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }
# Line 439  public: Line 426  public:
426      vmint minRequiredArgs() const OVERRIDE { return 2; }      vmint minRequiredArgs() const OVERRIDE { return 2; }
427      vmint maxAllowedArgs() const OVERRIDE { return 2; }      vmint maxAllowedArgs() const OVERRIDE { return 2; }
428      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_ARR_EXPR; }  
429      void checkArgs(VMFnArgs* args, std::function<void(String)> err,      void checkArgs(VMFnArgs* args, std::function<void(String)> err,
430                                     std::function<void(String)> wrn) OVERRIDE;                                     std::function<void(String)> wrn) OVERRIDE;
431      VMFnResult* exec(VMFnArgs* args) OVERRIDE;      VMFnResult* exec(VMFnArgs* args) OVERRIDE;
# Line 456  public: Line 442  public:
442      vmint minRequiredArgs() const OVERRIDE { return 2; }      vmint minRequiredArgs() const OVERRIDE { return 2; }
443      vmint maxAllowedArgs() const OVERRIDE { return 2; }      vmint maxAllowedArgs() const OVERRIDE { return 2; }
444      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;
     ExprType_t argType(vmint iArg) const OVERRIDE;  
445      void checkArgs(VMFnArgs* args, std::function<void(String)> err,      void checkArgs(VMFnArgs* args, std::function<void(String)> err,
446                                     std::function<void(String)> wrn) OVERRIDE;                                     std::function<void(String)> wrn) OVERRIDE;
447      VMFnResult* exec(VMFnArgs* args) OVERRIDE;      VMFnResult* exec(VMFnArgs* args) OVERRIDE;
# Line 470  public: Line 455  public:
455      vmint minRequiredArgs() const OVERRIDE { return 1; }      vmint minRequiredArgs() const OVERRIDE { return 1; }
456      vmint maxAllowedArgs() const OVERRIDE { return 2; }      vmint maxAllowedArgs() const OVERRIDE { return 2; }
457      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE;
     ExprType_t argType(vmint iArg) const OVERRIDE;  
458      bool modifiesArg(vmint iArg) const OVERRIDE { return iArg == 0; }      bool modifiesArg(vmint iArg) const OVERRIDE { return iArg == 0; }
459      VMFnResult* exec(VMFnArgs* args) OVERRIDE;      VMFnResult* exec(VMFnArgs* args) OVERRIDE;
460  };  };
# Line 487  public: Line 471  public:
471      vmint minRequiredArgs() const OVERRIDE { return 1; }      vmint minRequiredArgs() const OVERRIDE { return 1; }
472      vmint maxAllowedArgs() const OVERRIDE { return 1; }      vmint maxAllowedArgs() const OVERRIDE { return 1; }
473      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == REAL_EXPR; }      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == REAL_EXPR; }
     ExprType_t argType(vmint iArg) const OVERRIDE { return REAL_EXPR; }  
474      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
475      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
476      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }
# Line 506  public: Line 489  public:
489      vmint minRequiredArgs() const OVERRIDE { return 1; }      vmint minRequiredArgs() const OVERRIDE { return 1; }
490      vmint maxAllowedArgs() const OVERRIDE { return 1; }      vmint maxAllowedArgs() const OVERRIDE { return 1; }
491      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR; }      bool acceptsArgType(vmint iArg, ExprType_t type) const OVERRIDE { return type == INT_EXPR; }
     ExprType_t argType(vmint iArg) const OVERRIDE { return INT_EXPR; }  
492      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitType(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
493      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }      bool acceptsArgUnitPrefix(vmint iArg, StdUnit_t type) const OVERRIDE { return true; }
494      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }      bool acceptsArgFinal(vmint iArg) const OVERRIDE { return true; }

Legend:
Removed from v.3584  
changed lines
  Added in v.3585

  ViewVC Help
Powered by ViewVC