diff options
author | jokusoftware@gmail.com <jokusoftware@gmail.com@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-23 20:28:21 +0000 |
---|---|---|
committer | jokusoftware@gmail.com <jokusoftware@gmail.com@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-23 20:28:21 +0000 |
commit | 3cd6cb8893596c6e07e902addec0d74c61aa3712 (patch) | |
tree | 286201c3b052afd525e1b2d1c748922ce98b7654 /FlashAvatars/stdafx.h | |
parent | 615f5963a421bb4d4bfcb94ed2c39623e54bf328 (diff) |
latest FlashAvatars plug-in's sources:
- based on Big Muscles's FlashAvatars v1.0.13.246
- added Folders plug-in support
- removed STL dependency (using Miranda's core lists now), added VC6 project
- added service cleanup
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@204 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'FlashAvatars/stdafx.h')
-rw-r--r-- | FlashAvatars/stdafx.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/FlashAvatars/stdafx.h b/FlashAvatars/stdafx.h new file mode 100644 index 0000000..73ee89a --- /dev/null +++ b/FlashAvatars/stdafx.h @@ -0,0 +1,57 @@ +// stdafx.h : include file for standard system include files,
+// or project specific include files that are used frequently, but
+// are changed infrequently
+
+#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
+
+#if defined(UNICODE) && !defined(_UNICODE)
+# define _UNICODE
+#endif
+
+#ifdef _DEBUG
+# define _STLP_DEBUG 1
+#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 <windows.h>
+#include <stdio.h>
+
+
+#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
+
+
|