macro.h 597 B

123456789101112131415161718192021222324
  1. /*
  2. * 文件名: macro.h
  3. * 目标: 定义公共宏 和 公共头文件
  4. */
  5. #ifndef AFUN_MACRO_H
  6. #define AFUN_MACRO_H
  7. #include <iostream>
  8. #include <cinttypes>
  9. #include <cstdarg>
  10. #include "aFunbase.h"
  11. namespace aFuntool {
  12. static const char NUL = 0;
  13. typedef uint32_t FileLine; // 文件行号
  14. typedef char *FilePath; // 文件路径 (用于多处内存存储场景)
  15. typedef std::string StringFilePath; // 文件路径 (用于单处内存存储场景)
  16. typedef const std::string &ConstFilePath; // 文件路径 (用于参数)
  17. }
  18. #include "mem.h"
  19. #endif //AFUN_MACRO_H