Fixed leaking relocation table memory in JIT.
1 #ifndef _INCLUDE_SOURCEPAWN_ENGINE_2_H_
2 #define _INCLUDE_SOURCEPAWN_ENGINE_2_H_
9 * @brief Outlines the interface a Virtual Machine (JIT) must expose
11 class SourcePawnEngine2 : public ISourcePawnEngine2
16 unsigned int GetAPIVersion();
17 const char *GetEngineName();
18 const char *GetVersionString();
19 IPluginRuntime *LoadPlugin(ICompilation *co, const char *file, int *err);
20 SPVM_NATIVE_FUNC CreateFakeNative(SPVM_FAKENATIVE_FUNC callback, void *pData);
21 void DestroyFakeNative(SPVM_NATIVE_FUNC func);
22 IDebugListener *SetDebugListener(IDebugListener *listener);
23 void SetProfiler(IProfiler *profiler);
24 ICompilation *StartCompilation();
25 const char *GetErrorString(int err);
29 IProfiler *GetProfiler();
31 IProfiler *m_Profiler;
35 extern SourcePawn::SourcePawnEngine2 g_engine2;
37 #endif //_INCLUDE_SOURCEPAWN_ENGINE_2_H_