diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-12-23 23:58:47 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-12-28 21:44:08 +0400 |
commit | 25a8fe51b6c331debd1cd6fc3d2962d0bd9c2d45 (patch) | |
tree | 14fdab8557589381048d9a2523d279e4cd308451 /src/DSUtil/DSUtil.h | |
parent | 0c6784eaf5efb0ae6948da73bba18296fc7e8265 (diff) |
move the ResStr define in DSUtil.h instead of duplicating it
Diffstat (limited to 'src/DSUtil/DSUtil.h')
-rw-r--r-- | src/DSUtil/DSUtil.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/DSUtil/DSUtil.h b/src/DSUtil/DSUtil.h index df129c723..9c285ea76 100644 --- a/src/DSUtil/DSUtil.h +++ b/src/DSUtil/DSUtil.h @@ -263,6 +263,8 @@ public: #define SAFE_DELETE_ARRAY(p) { if (p) { delete [] (p); (p) = NULL; } }
#define SAFE_RELEASE(p) { if (p) { (p)->Release(); (p) = NULL; } }
+#define ResStr(id) CString(MAKEINTRESOURCE(id))
+
template <typename T> __inline void INITDDSTRUCT(T& dd)
{
SecureZeroMemory(&dd, sizeof(dd));
|