diff -r c991c043022d -r db7c6362f3f2 core/DebugReporter.cpp --- a/core/DebugReporter.cpp Thu Jul 10 01:26:02 2008 +0000 +++ b/core/DebugReporter.cpp Fri Jul 11 08:18:43 2008 +0000 @@ -36,11 +36,6 @@ 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() { g_pSourcePawn->SetDebugListener(this); @@ -56,7 +51,7 @@ va_end(ap); const char *plname = g_PluginSys.FindPluginByContext(ctx->GetContext())->GetFilename(); - const char *error = GetSourcePawnErrorMessage(err); + const char *error = g_pSourcePawn2->GetErrorString(err); if (error) { @@ -91,7 +86,7 @@ va_end(ap); const char *plname = g_PluginSys.FindPluginByContext(pContext->GetContext())->GetFilename(); - const char *error = GetSourcePawnErrorMessage(err); + const char *error = g_pSourcePawn2->GetErrorString(err); if (error) {