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 |
* |
* |
267 |
*/ |
*/ |
268 |
bool isAutoSuspendEnabled() const; |
bool isAutoSuspendEnabled() const; |
269 |
|
|
270 |
|
/** |
271 |
|
* By default (i.e. in production use) the built-in exit() function |
272 |
|
* prohibits any arguments to be passed to its function by scripts. So |
273 |
|
* by default, scripts trying to pass any arguments to the built-in |
274 |
|
* exit() function will yield in a parser error. |
275 |
|
* |
276 |
|
* By calling this method the built-in exit() function will optionally |
277 |
|
* accept one argument to be passed to its function call by scripts. The |
278 |
|
* value of that function argument will become available by calling |
279 |
|
* VMExecContext::exitResult() after execution of the script. |
280 |
|
* |
281 |
|
* @see VMExecContext::exitResult() |
282 |
|
*/ |
283 |
|
void setExitResultEnabled(bool b = true); |
284 |
|
|
285 |
|
/** |
286 |
|
* Returns @c true if the built-in exit() function optionally accepts |
287 |
|
* a function argument by scripts. |
288 |
|
* |
289 |
|
* @see setExitResultEnabled() |
290 |
|
*/ |
291 |
|
bool isExitResultEnabled() const; |
292 |
|
|
293 |
VMEventHandler* currentVMEventHandler(); //TODO: should be protected (only usable during exec() calls, intended only for VMFunctions) |
VMEventHandler* currentVMEventHandler(); //TODO: should be protected (only usable during exec() calls, intended only for VMFunctions) |
294 |
VMParserContext* currentVMParserContext(); //TODO: should be protected (only usable during exec() calls, intended only for VMFunctions) |
VMParserContext* currentVMParserContext(); //TODO: should be protected (only usable during exec() calls, intended only for VMFunctions) |
295 |
VMExecContext* currentVMExecContext(); //TODO: should be protected (only usable during exec() calls, intended only for VMFunctions) |
VMExecContext* currentVMExecContext(); //TODO: should be protected (only usable during exec() calls, intended only for VMFunctions) |
298 |
VMEventHandler* m_eventHandler; |
VMEventHandler* m_eventHandler; |
299 |
ParserContext* m_parserContext; |
ParserContext* m_parserContext; |
300 |
bool m_autoSuspend; |
bool m_autoSuspend; |
301 |
|
bool m_acceptExitRes; |
302 |
class CoreVMFunction_message* m_fnMessage; |
class CoreVMFunction_message* m_fnMessage; |
303 |
class CoreVMFunction_exit* m_fnExit; |
class CoreVMFunction_exit* m_fnExit; |
304 |
class CoreVMFunction_wait* m_fnWait; |
class CoreVMFunction_wait* m_fnWait; |