From 70d04c9b21955c34070ee466693403e2b00870e1 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Wed, 18 Jul 2012 07:52:13 +0000 Subject: FirstRun, FlashAvatars, FloatingContacts: changed folder structure git-svn-id: http://svn.miranda-ng.org/main/trunk@1008 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FlashAvatars/src/stdafx.h | 59 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 plugins/FlashAvatars/src/stdafx.h (limited to 'plugins/FlashAvatars/src/stdafx.h') diff --git a/plugins/FlashAvatars/src/stdafx.h b/plugins/FlashAvatars/src/stdafx.h new file mode 100644 index 0000000000..a5df8294e9 --- /dev/null +++ b/plugins/FlashAvatars/src/stdafx.h @@ -0,0 +1,59 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently + +#define _CRT_SECURE_NO_WARNINGS + +#pragma once +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers +#define BZ_NO_STDIO + +#ifdef _WIN32 +# define _WIN32_WINNT 0x0500 +# define _WIN32_IE 0x0501 +#endif + +#ifdef _DEBUG +# define _STLP_DEBUG 1 +#endif + +#ifndef _WIN64 + #define _USE_32BIT_TIME_T +#endif + +#define _STLP_DONT_USE_SHORT_STRING_OPTIM 1 // Uses small string buffer, so it saves memory for a lot of strings +#define _STLP_USE_PTR_SPECIALIZATIONS 1 // Reduces some code bloat +#define _STLP_USE_TEMPLATE_EXPRESSION 1 // Speeds up string concatenation +#define _STLP_NO_ANACHRONISMS 1 + +#include +#include + + +#ifdef _DEBUG + +inline void _cdecl debugTrace(const char* format, ...) +{ + va_list args; + va_start(args, format); + + char buf[512]; + + _vsnprintf(buf, sizeof(buf), format, args); + OutputDebugStringA(buf); + va_end(args); +} + +# define debug debugTrace +#define assert(exp) \ +do { if (!(exp)) { \ + debug("Assertion hit in %s(%d): " #exp "\n", __FILE__, __LINE__); \ + if(1 == _CrtDbgReport(_CRT_ASSERT, __FILE__, __LINE__, NULL, #exp)) \ +_CrtDbgBreak(); } } while(false) + +#else +# define debug +# define assert +#endif + + -- cgit v1.2.3