fixed some build issues. deprecated ISourceMod::GetScriptingVM

--HG--
branch : refac-jit
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/refac-jit%402378
This commit is contained in:
David Anderson 2008-07-07 06:33:42 +00:00
parent 2c23544b29
commit af54ae6af7
4 changed files with 5 additions and 11 deletions

View File

@ -36,11 +36,6 @@
DebugReport g_DbgReporter; DebugReport g_DbgReporter;
/* I'm really lazy. This should probably be exported to ISourcePawnEngine someday,
* but we need to make sure the JIT will deal with the version bump.
*/
extern const char *GetSourcePawnErrorMessage(int error);
void DebugReport::OnSourceModAllInitialized() void DebugReport::OnSourceModAllInitialized()
{ {
g_pSourcePawn->SetDebugListener(this); g_pSourcePawn->SetDebugListener(this);
@ -56,7 +51,7 @@ void DebugReport::GenerateError(IPluginContext *ctx, cell_t func_idx, int err, c
va_end(ap); va_end(ap);
const char *plname = g_PluginSys.FindPluginByContext(ctx->GetContext())->GetFilename(); const char *plname = g_PluginSys.FindPluginByContext(ctx->GetContext())->GetFilename();
const char *error = GetSourcePawnErrorMessage(err); const char *error = g_pSourcePawn2->GetErrorString(err);
if (error) if (error)
{ {
@ -91,7 +86,7 @@ void DebugReport::GenerateCodeError(IPluginContext *pContext, uint32_t code_addr
va_end(ap); va_end(ap);
const char *plname = g_PluginSys.FindPluginByContext(pContext->GetContext())->GetFilename(); const char *plname = g_PluginSys.FindPluginByContext(pContext->GetContext())->GetFilename();
const char *error = GetSourcePawnErrorMessage(err); const char *error = g_pSourcePawn2->GetErrorString(err);
if (error) if (error)
{ {

View File

@ -174,7 +174,6 @@ private:
extern ISourcePawnEngine *g_pSourcePawn; extern ISourcePawnEngine *g_pSourcePawn;
extern ISourcePawnEngine2 *g_pSourcePawn2; extern ISourcePawnEngine2 *g_pSourcePawn2;
extern IVirtualMachine *g_pVM;
extern IdentityToken_t *g_pCoreIdent; extern IdentityToken_t *g_pCoreIdent;
#include "sm_autonatives.h" #include "sm_autonatives.h"

View File

@ -590,7 +590,7 @@ ISourcePawnEngine *SourceModBase::GetScriptingEngine()
IVirtualMachine *SourceModBase::GetScriptingVM() IVirtualMachine *SourceModBase::GetScriptingVM()
{ {
return g_pVM; return NULL;
} }
void SourceModBase::AllPluginsLoaded() void SourceModBase::AllPluginsLoaded()

View File

@ -203,9 +203,9 @@ namespace SourceMod
virtual SourcePawn::ISourcePawnEngine *GetScriptingEngine() =0; virtual SourcePawn::ISourcePawnEngine *GetScriptingEngine() =0;
/** /**
* @brief Returns the JIT interface. * @brief Deprecated, do not use.
* *
* @return A pointer to the JIT interface. * @return NULL.
*/ */
virtual SourcePawn::IVirtualMachine *GetScriptingVM() =0; virtual SourcePawn::IVirtualMachine *GetScriptingVM() =0;