浏览代码

- minor fix: DBG_QM_MALLOC / DBG_F_MALLOC are quiv. now for fm_malloc

Andrei Pelinescu-Onciul 20 年之前
父节点
当前提交
1bdf4d8122
共有 1 个文件被更改,包括 13 次插入13 次删除
  1. 13 13
      mem/shm_mem.h

+ 13 - 13
mem/shm_mem.h

@@ -54,6 +54,19 @@
 #include <string.h>
 #include <errno.h>
 
+/* fix DBG MALLOC stuff */
+
+/* fix debug defines, DBG_F_MALLOC <=> DBG_QM_MALLOC */
+#ifdef F_MALLOC
+	#ifdef DBG_F_MALLOC
+		#ifndef DBG_QM_MALLOC
+			#define DBG_QM_MALLOC
+		#endif
+	#elif defined(DBG_QM_MALLOC)
+		#define DBG_F_MALLOC
+	#endif
+#endif
+
 
 
 #include "../dprint.h"
@@ -101,19 +114,6 @@ void shm_mem_destroy();
 #define shm_lock()    lock_get(mem_lock)
 #define shm_unlock()  lock_release(mem_lock)
 
-/* fix DBG MALLOC stuff */
-
-/* fix debug defines, DBG_F_MALLOC <=> DBG_QM_MALLOC */
-#ifdef F_MALLOC
-	#ifdef DBG_F_MALLOC
-		#ifndef DBG_QM_MALLOC
-			#define DBG_QM_MALLOC
-		#endif
-	#elif defined(DBG_QM_MALLOC)
-		#define DBG_F_MALLOC
-	#endif
-#endif
-
 
 #ifdef DBG_QM_MALLOC