2005-06-28 06:12:50 +02:00
|
|
|
// stack trace, improved debug_assert and exception handler for Win32
|
2005-01-27 17:18:22 +01:00
|
|
|
// Copyright (c) 2002-2005 Jan Wassenberg
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License as
|
|
|
|
// published by the Free Software Foundation; either version 2 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// 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. See the GNU
|
|
|
|
// General Public License for more details.
|
|
|
|
//
|
|
|
|
// Contact info:
|
|
|
|
// Jan.Wassenberg@stud.uni-karlsruhe.de
|
|
|
|
// http://www.stud.uni-karlsruhe.de/~urkt/
|
|
|
|
|
2004-07-12 18:38:48 +02:00
|
|
|
#ifndef WDBG_H__
|
|
|
|
#define WDBG_H__
|
|
|
|
|
2004-06-19 16:54:25 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-08-09 18:23:19 +02:00
|
|
|
#if MSC_VERSION
|
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-06-19 16:54:25 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2004-07-12 18:38:48 +02:00
|
|
|
#endif // #ifndef WDBG_H__
|