core/DebugReporter.cpp
changeset 2193 db7c6362f3f2
parent 2061 77bd041bbe72
child 2195 5b70179559f9
     1.1 --- a/core/DebugReporter.cpp	Thu Jul 10 01:26:02 2008 +0000
     1.2 +++ b/core/DebugReporter.cpp	Fri Jul 11 08:18:43 2008 +0000
     1.3 @@ -36,11 +36,6 @@
     1.4  
     1.5  DebugReport g_DbgReporter;
     1.6  
     1.7 -/* I'm really lazy.  This should probably be exported to ISourcePawnEngine someday,
     1.8 - * but we need to make sure the JIT will deal with the version bump.
     1.9 - */
    1.10 -extern const char *GetSourcePawnErrorMessage(int error);
    1.11 -
    1.12  void DebugReport::OnSourceModAllInitialized()
    1.13  {
    1.14  	g_pSourcePawn->SetDebugListener(this);
    1.15 @@ -56,7 +51,7 @@
    1.16  	va_end(ap);
    1.17  
    1.18  	const char *plname = g_PluginSys.FindPluginByContext(ctx->GetContext())->GetFilename();
    1.19 -	const char *error = GetSourcePawnErrorMessage(err);
    1.20 +	const char *error = g_pSourcePawn2->GetErrorString(err);
    1.21  
    1.22  	if (error)
    1.23  	{
    1.24 @@ -91,7 +86,7 @@
    1.25  	va_end(ap);
    1.26  
    1.27  	const char *plname = g_PluginSys.FindPluginByContext(pContext->GetContext())->GetFilename();
    1.28 -	const char *error = GetSourcePawnErrorMessage(err);
    1.29 +	const char *error = g_pSourcePawn2->GetErrorString(err);
    1.30  
    1.31  	if (error)
    1.32  	{