From c0846ad8541a49f1467d32d3208df9671779f5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Sch=C3=BCmann?= Date: Thu, 25 Dec 2014 00:30:32 +0000 Subject: SendSS: * Main.cpp further improved * added "m_" prefix to some "static" variables * unified and simplified service and menu-item adding/removing (this also inlined those calls, thus AddMenuItems(),RegisterServices() removed) * inlined netlib init * use "DLL_EXPORT" instead of "extern "C" __declspec(dllexport)" + open capture dialog automatically when using debugging builds * our PLUGININFOEX structure should be constant (though Miranda API doesn't support that) + added DBGMSG macro to global.h for future use as a replacement for direct OutputDebugString calls (DBGMSG is a "nop" for release builds) git-svn-id: http://svn.miranda-ng.org/main/trunk@11609 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SendScreenshotPlus/src/global.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/SendScreenshotPlus/src/global.h') diff --git a/plugins/SendScreenshotPlus/src/global.h b/plugins/SendScreenshotPlus/src/global.h index c0d6c2d965..780184080d 100644 --- a/plugins/SendScreenshotPlus/src/global.h +++ b/plugins/SendScreenshotPlus/src/global.h @@ -127,6 +127,11 @@ extern HANDLE g_hNetlibUser; #define PtrIsValid(p) (((p)!=0)&&(((HANDLE)(p))!=INVALID_HANDLE_VALUE)) #define MIR_FREE(p) {if (PtrIsValid(p)){mir_free((void*)p);(p)=NULL;}} +#ifdef _DEBUG +# define DBGMSG(str,...) do{char tmp[1024];sprintf(tmp,str,##__VA_ARGS__);OutputDebugStringA(tmp);}while(0) +#else +# define DBGMSG(str,...) +#endif template std::basic_string<_Elem> replace(const std::basic_string<_Elem> & Origninal, const std::basic_string<_Elem> & What, const std::basic_string<_Elem> & With) -- cgit v1.2.3