core/CDbgReporter.h
author Scott Ehlert <ds@alliedmods.net>
Sat Feb 17 05:33:31 2007 +0000 (2007-02-17)
changeset 511 c29f8796bcf4
parent 462 014aad37c7b4
permissions -rw-r--r--
Initial fixes to ensure static strings passed to new convars
Also fixed minor warning in smn_bitbuffer.cpp
dvander@370
     1
/**
dvander@370
     2
 * ===============================================================
dvander@370
     3
 * SourceMod (C)2004-2007 AlliedModders LLC.  All rights reserved.
dvander@370
     4
 * ===============================================================
dvander@370
     5
 *
dvander@370
     6
 * This file is not open source and may not be copied without explicit
dvander@370
     7
 * written permission of AlliedModders LLC.  This file may not be redistributed 
dvander@370
     8
 * in whole or significant part.
dvander@370
     9
 * For information, see LICENSE.txt or http://www.sourcemod.net/license.php
dvander@370
    10
 *
dvander@370
    11
 * Version: $Id$
dvander@370
    12
 */
dvander@370
    13
faluco@288
    14
#ifndef _INCLUDE_SOURCEMOD_CDBGREPORTER_H_
faluco@288
    15
#define _INCLUDE_SOURCEMOD_CDBGREPORTER_H_
faluco@288
    16
faluco@288
    17
#include "sp_vm_api.h"
faluco@288
    18
#include "sm_globals.h"
faluco@288
    19
faluco@288
    20
class CDbgReporter : 
faluco@288
    21
	public SMGlobalClass, 
faluco@288
    22
	public IDebugListener
faluco@288
    23
{
faluco@288
    24
public: // SMGlobalClass
faluco@288
    25
	void OnSourceModAllInitialized();
faluco@288
    26
public: // IDebugListener
faluco@288
    27
	void OnContextExecuteError(IPluginContext *ctx, IContextTrace *error);
faluco@288
    28
private:
faluco@288
    29
	int _GetPluginIndex(IPluginContext *ctx);
faluco@288
    30
};
faluco@288
    31
ds@462
    32
extern CDbgReporter g_DbgReporter;
ds@462
    33
dvander@351
    34
#endif // _INCLUDE_SOURCEMOD_CDBGREPORTER_H_
dvander@351
    35