webui.h 512 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // Created by xcbosa on 2023/1/28.
  3. //
  4. #ifndef FRPCWEBUI_WEBUI_H
  5. #define FRPCWEBUI_WEBUI_H
  6. #include <vector>
  7. #include <map>
  8. #include <string>
  9. #include <iostream>
  10. #include <thread>
  11. #include <mutex>
  12. #include "webuiconf.h"
  13. using namespace std;
  14. #define assertx(expr, message) \
  15. if (!(expr)) { std::cerr << message << std::endl; exit(-1); }
  16. namespace xc {
  17. constexpr int smallBuffSize = 32;
  18. namespace utils {
  19. string contentsOfTextFile(string filePath);
  20. }
  21. }
  22. #endif //FRPCWEBUI_WEBUI_H