__stl__.h 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #pragma once
  2. #ifdef _MSC_VER
  3. #pragma warning (disable:4267)
  4. #pragma warning (disable:4101)
  5. #define _CRT_NONSTDC_NO_DEPRECATE
  6. #define strdup _strdup
  7. #endif
  8. #include <sstream>
  9. #include <regex>
  10. #include <stack>
  11. #include <cmath>
  12. #include <stdexcept>
  13. #include <vector>
  14. #include <string>
  15. #include <cstring>
  16. #include <chrono>
  17. #include <string_view>
  18. #include <queue>
  19. #include <iomanip>
  20. #include <memory>
  21. #include <functional>
  22. #include <atomic>
  23. #include <iostream>
  24. #include "hash_table8.hpp"
  25. #ifdef POCKETPY_H
  26. #define UNREACHABLE() throw std::runtime_error( "L" + std::to_string(__LINE__) + " UNREACHABLE()! This should be a bug, please report it");
  27. #else
  28. #define UNREACHABLE() throw std::runtime_error( __FILE__ + std::string(":") + std::to_string(__LINE__) + " UNREACHABLE()!");
  29. #endif
  30. #ifdef __EMSCRIPTEN__
  31. #include <emscripten.h>
  32. #endif
  33. #define PK_VERSION "0.8.0"
  34. typedef int64_t i64;
  35. typedef double f64;
  36. #define DUMMY_VAL (i64)0
  37. #define CPP_LAMBDA(x) ([](VM* vm, const pkpy::ArgList& args) { return x; })