2006-04-12 01:59:08 +02:00
|
|
|
/**
|
|
|
|
* =========================================================================
|
|
|
|
* File : wdbg.h
|
|
|
|
* Project : 0 A.D.
|
|
|
|
* Description : Win32 debug support code and exception handler.
|
|
|
|
*
|
|
|
|
* @author Jan.Wassenberg@stud.uni-karlsruhe.de
|
|
|
|
* =========================================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2002-2005 Jan Wassenberg
|
|
|
|
*
|
|
|
|
* Redistribution and/or modification are also permitted under the
|
|
|
|
* terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation (version 2 or later, at your option).
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
*/
|
2005-01-27 17:18:22 +01:00
|
|
|
|
2004-07-12 18:38:48 +02:00
|
|
|
#ifndef WDBG_H__
|
|
|
|
#define WDBG_H__
|
|
|
|
|
2005-10-24 01:57:59 +02:00
|
|
|
#if HAVE_MS_ASM
|
2005-01-25 19:27:00 +01:00
|
|
|
# define debug_break() __asm { int 3 }
|
|
|
|
#else
|
|
|
|
# error "port this or define to implementation function"
|
|
|
|
#endif
|
|
|
|
|
2005-08-09 18:23:19 +02:00
|
|
|
// internal use only:
|
|
|
|
extern void wdbg_set_thread_name(const char* name);
|
|
|
|
|
2004-07-12 18:38:48 +02:00
|
|
|
#endif // #ifndef WDBG_H__
|