2007-01-25 23:36:38 +01:00
|
|
|
/**
|
|
|
|
* ===============================================================
|
|
|
|
* SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
|
|
|
|
* ===============================================================
|
|
|
|
*
|
|
|
|
* This file is not open source and may not be copied without explicit
|
|
|
|
* written permission of AlliedModders LLC. This file may not be redistributed
|
|
|
|
* in whole or significant part.
|
|
|
|
* For information, see LICENSE.txt or http://www.sourcemod.net/license.php
|
|
|
|
*
|
|
|
|
* Version: $Id$
|
|
|
|
*/
|
|
|
|
|
2007-01-13 00:56:02 +01:00
|
|
|
#ifndef _INCLUDE_SOURCEMOD_CDBGREPORTER_H_
|
|
|
|
#define _INCLUDE_SOURCEMOD_CDBGREPORTER_H_
|
|
|
|
|
|
|
|
#include "sp_vm_api.h"
|
|
|
|
#include "sm_globals.h"
|
|
|
|
|
2007-03-15 05:45:17 +01:00
|
|
|
class DebugReport :
|
2007-01-13 00:56:02 +01:00
|
|
|
public SMGlobalClass,
|
|
|
|
public IDebugListener
|
|
|
|
{
|
|
|
|
public: // SMGlobalClass
|
|
|
|
void OnSourceModAllInitialized();
|
|
|
|
public: // IDebugListener
|
|
|
|
void OnContextExecuteError(IPluginContext *ctx, IContextTrace *error);
|
|
|
|
private:
|
|
|
|
int _GetPluginIndex(IPluginContext *ctx);
|
|
|
|
};
|
|
|
|
|
2007-03-15 05:45:17 +01:00
|
|
|
extern DebugReport g_DbgReporter;
|
2007-02-10 11:38:23 +01:00
|
|
|
|
2007-01-25 10:19:38 +01:00
|
|
|
#endif // _INCLUDE_SOURCEMOD_CDBGREPORTER_H_
|
|
|
|
|