Interface to a Script object. More...
#include <sheepcpp.h>
Public Member Functions | |
virtual void | Release ()=0 |
virtual SheepLanguageVersion | GetLanguageVersion ()=0 |
Gets the language version with which this script was created. | |
virtual ScriptStatus | GetStatus ()=0 |
Gets the status of the script. | |
virtual int | GetNumMessages ()=0 |
Gets the number of messages that were generated during compilation. | |
virtual const char * | GetMessage (int index)=0 |
Gets the message text of the particular message generated during compilation. | |
virtual int | GetMessageLineNumber (int index)=0 |
Gets the line number for which the particular message was generated. | |
virtual IDisassembly * | GenerateDisassembly ()=0 |
virtual ICompiledScriptOutput * | GenerateCompiledOutput ()=0 |
Interface to a Script object.
|
pure virtual |
Generates compiled bytecode that can be written to a file and read later by CreateScriptFromBytecode()
|
pure virtual |
Generates a disassembly
|
pure virtual |
Releases the Script, decreasing its reference count by 1.
This is safe to call even if the Virtual Machine is still executing the script. Each IExecutionContext that is executing a particular IScript holds its own reference to the IScript.