#include <public/sourcepawn/sp_vm_api.h>
Public Member Functions | |
| virtual unsigned int | GetAPIVersion ()=0 |
| Returns the second engine API version. | |
| virtual const char * | GetEngineName ()=0 |
| Returns the string name of a VM implementation. | |
| virtual const char * | GetVersionString ()=0 |
| Returns a version string. | |
| virtual ICompilation * | StartCompilation ()=0 |
| Creates a new compilation options object. | |
| virtual IPluginRuntime * | LoadPlugin (ICompilation *co, const char *file, int *err)=0 |
| Loads a plugin from disk. | |
| virtual SPVM_NATIVE_FUNC | CreateFakeNative (SPVM_FAKENATIVE_FUNC callback, void *pData)=0 |
| Creates a fake native and binds it to a general callback function. | |
| virtual void | DestroyFakeNative (SPVM_NATIVE_FUNC func)=0 |
| Destroys a fake native function wrapper. | |
| virtual IDebugListener * | SetDebugListener (IDebugListener *listener)=0 |
| Sets the debug listener. This should only be called once. If called successively (using manual chaining), only the last function should attempt to call back into the same plugin. Otherwise, globally cached states can be accidentally overwritten. | |
| virtual void | SetProfiler (IProfiler *profiler)=0 |
| Sets the global profiler. | |
| virtual const char * | GetErrorString (int err)=0 |
| Returns the string representation of an error message. | |
| virtual bool | Initialize ()=0 |
| Initializes the SourcePawn engine. | |
| virtual void | Shutdown ()=0 |
| Shuts down the SourcePawn engine. Only needs to be called if Initialize() succeeded. | |
Definition at line 1159 of file sp_vm_api.h.
| virtual unsigned int SourcePawn::ISourcePawnEngine2::GetAPIVersion | ( | ) | [pure virtual] |
Returns the second engine API version.
| virtual const char* SourcePawn::ISourcePawnEngine2::GetVersionString | ( | ) | [pure virtual] |
Returns a version string.
| virtual ICompilation* SourcePawn::ISourcePawnEngine2::StartCompilation | ( | ) | [pure virtual] |
Creates a new compilation options object.
| virtual IPluginRuntime* SourcePawn::ISourcePawnEngine2::LoadPlugin | ( | ICompilation * | co, | |
| const char * | file, | |||
| int * | err | |||
| ) | [pure virtual] |
Loads a plugin from disk.
If a compilation object is supplied, it is destroyed upon the function's return.
| co | Compilation options, or NULL for defaults. | |
| file | Path to the file to compile. | |
| err | Error code (filled on failure); required. |
| virtual SPVM_NATIVE_FUNC SourcePawn::ISourcePawnEngine2::CreateFakeNative | ( | SPVM_FAKENATIVE_FUNC | callback, | |
| void * | pData | |||
| ) | [pure virtual] |
Creates a fake native and binds it to a general callback function.
| callback | Callback function to bind the native to. | |
| pData | Private data to pass to the callback when the native is invoked. |
| virtual void SourcePawn::ISourcePawnEngine2::DestroyFakeNative | ( | SPVM_NATIVE_FUNC | func | ) | [pure virtual] |
Destroys a fake native function wrapper.
| func | Pointer to the fake native created by CreateFakeNative. |
| virtual IDebugListener* SourcePawn::ISourcePawnEngine2::SetDebugListener | ( | IDebugListener * | listener | ) | [pure virtual] |
Sets the debug listener. This should only be called once. If called successively (using manual chaining), only the last function should attempt to call back into the same plugin. Otherwise, globally cached states can be accidentally overwritten.
| listener | Pointer to an IDebugListener. |
| virtual void SourcePawn::ISourcePawnEngine2::SetProfiler | ( | IProfiler * | profiler | ) | [pure virtual] |
Sets the global profiler.
| profiler | Profiler pointer. |
| virtual const char* SourcePawn::ISourcePawnEngine2::GetErrorString | ( | int | err | ) | [pure virtual] |
Returns the string representation of an error message.
| err | Error code. |
| virtual bool SourcePawn::ISourcePawnEngine2::Initialize | ( | ) | [pure virtual] |
1.5.1