2004-03-03 00:56:51 +01:00
|
|
|
#ifndef SYSDEP_H__
|
|
|
|
#define SYSDEP_H__
|
|
|
|
|
2004-07-13 00:05:49 +02:00
|
|
|
#include "config.h"
|
|
|
|
|
2004-04-09 14:39:55 +02:00
|
|
|
#ifdef _WIN32
|
2004-03-03 00:56:51 +01:00
|
|
|
#include "win/win.h"
|
2004-07-12 18:48:10 +02:00
|
|
|
#include "win/wdbg.h"
|
2004-07-13 00:05:49 +02:00
|
|
|
#elif defined(OS_UNIX)
|
|
|
|
#include "unix/unix.h"
|
2004-04-09 14:39:55 +02:00
|
|
|
#endif
|
2004-03-03 00:56:51 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-07-12 16:21:13 +02:00
|
|
|
|
2004-05-06 19:14:30 +02:00
|
|
|
extern void display_msg(const char* caption, const char* msg);
|
|
|
|
extern void wdisplay_msg(const wchar_t* caption, const wchar_t* msg);
|
2004-03-03 00:56:51 +01:00
|
|
|
|
2004-07-14 05:05:26 +02:00
|
|
|
extern void debug_out(const char* fmt, ...);
|
2004-07-12 18:48:10 +02:00
|
|
|
extern void debug_break();
|
|
|
|
|
2004-07-14 05:05:26 +02:00
|
|
|
|
|
|
|
// assert with stack trace (including variable / parameter types and values)
|
|
|
|
// shown in a dialog, which offers
|
|
|
|
// continue, break, suppress (ignore this assert), and exit
|
2004-07-14 14:24:18 +02:00
|
|
|
/*
|
2004-07-15 04:39:25 +02:00
|
|
|
* return values:
|
|
|
|
* 0 - continue
|
|
|
|
* 1 - suppress
|
|
|
|
* 2 - break
|
|
|
|
*/
|
|
|
|
|
|
|
|
extern int debug_assert_failed(const char* source_file, int line, const char* expr);
|
|
|
|
|
|
|
|
extern int debug_write_crashlog(const char* file);
|
|
|
|
|
2004-07-14 05:05:26 +02:00
|
|
|
|
2004-03-03 01:37:41 +01:00
|
|
|
extern void check_heap();
|
|
|
|
|
2004-07-13 23:17:26 +02:00
|
|
|
|
|
|
|
extern int clipboard_set(const wchar_t* text);
|
|
|
|
extern wchar_t* clipboard_get();
|
|
|
|
extern int clipboard_free(wchar_t* copy);
|
|
|
|
|
|
|
|
|
2004-06-02 17:12:48 +02:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
extern double round(double);
|
|
|
|
#endif
|
|
|
|
|
2004-06-03 03:43:33 +02:00
|
|
|
#ifndef HAVE_C99
|
|
|
|
extern float fminf(float a, float b);
|
|
|
|
extern float fmaxf(float a, float b);
|
|
|
|
#endif
|
|
|
|
|
2004-06-09 15:43:25 +02:00
|
|
|
#ifndef _MSC_VER
|
|
|
|
#define stricmp strcasecmp
|
|
|
|
#define strnicmp strncasecmp
|
|
|
|
#endif
|
2004-06-03 03:43:33 +02:00
|
|
|
|
2004-03-03 00:56:51 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2004-04-09 14:39:55 +02:00
|
|
|
#endif // #ifndef SYSDEP_H__
|