2
0
Эх сурвалжийг харах

refactor & fix: 修复CTest运行的一些错误

SongZihuan 3 жил өмнө
parent
commit
c1f323056f

+ 1 - 1
include/tool/mem.h

@@ -9,7 +9,7 @@
 #include "mem.inline.h"
 
 #ifndef MEM_NOT_DEFINE
-#define free(p) (safeFree((p)))
+#define free(p) (aFuntool::safeFree((p)))
 #define calloc(n, obj) (obj *)(aFuntool::safeCalloc(n, sizeof(obj)))
 #define calloc_size(n, size) (aFuntool::safeCalloc(n, size))
 #endif

+ 1 - 0
test/src/tool-md5.cpp

@@ -1,4 +1,5 @@
 #include "aFuntool.h"
+using namespace aFuntool;
 
 int main(int argc, char **argv) {
     if (argc != 3)

+ 1 - 0
test/src/tool-regex.cpp

@@ -1,6 +1,7 @@
 #include <cstdio>
 #include <iostream>
 #include "aFuntool.h"
+using namespace aFuntool;
 
 int main() {
     Regex *rg = new Regex("Hello嘿.*d");