diff options
author | René Schümann <white06tiger@gmail.com> | 2014-12-25 00:30:32 +0000 |
---|---|---|
committer | René Schümann <white06tiger@gmail.com> | 2014-12-25 00:30:32 +0000 |
commit | c0846ad8541a49f1467d32d3208df9671779f5b8 (patch) | |
tree | c1fd51a3fc1378c56ac72311a124d86a03f534c1 /plugins/SendScreenshotPlus/src/global.h | |
parent | f1854df3ba57b0358c893884d56d6826e25f344d (diff) |
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
Diffstat (limited to 'plugins/SendScreenshotPlus/src/global.h')
-rw-r--r-- | plugins/SendScreenshotPlus/src/global.h | 5 |
1 files changed, 5 insertions, 0 deletions
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<class _Elem> std::basic_string<_Elem> replace(const std::basic_string<_Elem> & Origninal, const std::basic_string<_Elem> & What, const std::basic_string<_Elem> & With) |