1 |
/* |
/* |
2 |
* Copyright (c) 2014-2017 Christian Schoenebeck |
* Copyright (c) 2014-2019 Christian Schoenebeck |
3 |
* |
* |
4 |
* http://www.linuxsampler.org |
* http://www.linuxsampler.org |
5 |
* |
* |
906 |
* then may run independently with its own polyphonic data for instance. |
* then may run independently with its own polyphonic data for instance. |
907 |
*/ |
*/ |
908 |
virtual void forkTo(VMExecContext* ectx) const = 0; |
virtual void forkTo(VMExecContext* ectx) const = 0; |
909 |
|
|
910 |
|
/** |
911 |
|
* In case the script called the built-in exit() function and passed a |
912 |
|
* value as argument to the exit() function, then this method returns |
913 |
|
* the value that had been passed as argument to the exit() function. |
914 |
|
* Otherwise if the exit() function has not been called by the script |
915 |
|
* or no argument had been passed to the exit() function, then this |
916 |
|
* method returns NULL instead. |
917 |
|
* |
918 |
|
* Currently this is only used for automated test cases against the |
919 |
|
* script engine, which return some kind of value in the individual |
920 |
|
* test case scripts to check their behaviour in automated way. There |
921 |
|
* is no purpose for this mechanism in production use. Accordingly this |
922 |
|
* exit result value is @b always completely ignored by the sampler |
923 |
|
* engines. |
924 |
|
* |
925 |
|
* Officially the built-in exit() function does not expect any arguments |
926 |
|
* to be passed to its function call, and by default this feature is |
927 |
|
* hence disabled and will yield in a parser error unless |
928 |
|
* ScriptVM::setExitResultEnabled() was explicitly set. |
929 |
|
* |
930 |
|
* @see ScriptVM::setExitResultEnabled() |
931 |
|
*/ |
932 |
|
virtual VMExpr* exitResult() = 0; |
933 |
}; |
}; |
934 |
|
|
935 |
/** @brief Script callback for a certain event. |
/** @brief Script callback for a certain event. |