644 |
struct VMInt8Array { |
struct VMInt8Array { |
645 |
int8_t* data; |
int8_t* data; |
646 |
int size; |
int size; |
647 |
|
bool readonly; ///< Whether the array data may be modified or just be read. |
648 |
|
|
649 |
VMInt8Array() : data(NULL), size(0) {} |
VMInt8Array() : data(NULL), size(0), readonly(false) {} |
650 |
}; |
}; |
651 |
|
|
652 |
/** @brief Virtual machine script variable. |
/** @brief Virtual machine script variable. |
871 |
* ScriptVM::exec() call. |
* ScriptVM::exec() call. |
872 |
*/ |
*/ |
873 |
virtual size_t instructionsPerformed() const = 0; |
virtual size_t instructionsPerformed() const = 0; |
874 |
|
|
875 |
|
/** |
876 |
|
* Sends a signal to this script execution instance to abort its script |
877 |
|
* execution as soon as possible. This method is called i.e. when one |
878 |
|
* script execution instance intends to stop another script execution |
879 |
|
* instance. |
880 |
|
*/ |
881 |
|
virtual void signalAbort() = 0; |
882 |
}; |
}; |
883 |
|
|
884 |
/** @brief Script callback for a certain event. |
/** @brief Script callback for a certain event. |