[Ttssh2-commit] [8304] デバグ関数への切り替えに _CRTDBG_MAP_ALLOC を使うようにした

アーカイブの一覧に戻る
scmno****@osdn***** scmno****@osdn*****
2019年 10月 15日 (火) 01:13:29 JST


Revision: 8304
          https://osdn.net/projects/ttssh2/scm/svn/commits/8304
Author:   zmatsuo
Date:     2019-10-15 01:13:29 +0900 (Tue, 15 Oct 2019)
Log Message:
-----------
デバグ関数への切り替えに _CRTDBG_MAP_ALLOC を使うようにした

Modified Paths:
--------------
    trunk/teraterm/common/dllutil.cpp

-------------- next part --------------
Modified: trunk/teraterm/common/dllutil.cpp
===================================================================
--- trunk/teraterm/common/dllutil.cpp	2019-10-14 16:13:18 UTC (rev 8303)
+++ trunk/teraterm/common/dllutil.cpp	2019-10-14 16:13:29 UTC (rev 8304)
@@ -29,17 +29,13 @@
 #include <windows.h>
 #include <tchar.h>
 #include <assert.h>
+#if !defined(_CRTDBG_MAP_ALLOC)
+#define _CRTDBG_MAP_ALLOC
+#endif
 #include <crtdbg.h>
 
 #include "dllutil.h"
 
-#ifdef _DEBUG
-#define malloc(l)     _malloc_dbg((l), _NORMAL_BLOCK, __FILE__, __LINE__)
-#define free(p)       _free_dbg((p), _NORMAL_BLOCK)
-#define _strdup(s)	  _strdup_dbg((s), _NORMAL_BLOCK, __FILE__, __LINE__)
-#define	realloc(p, l) _realloc_dbg((p), (l),  _NORMAL_BLOCK, __FILE__, __LINE__)
-#endif
-
 typedef struct {
 	const TCHAR *dllName;
 	DLLLoadFlag LoadFlag;


Ttssh2-commit メーリングリストの案内
アーカイブの一覧に戻る