smallmap.h 679 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "pocketpy/common/vector.h"
  3. #include "pocketpy/common/str.h"
  4. #include <stdint.h>
  5. #define SMALLMAP_T__HEADER
  6. #define K uint16_t
  7. #define V int
  8. #define NAME c11_smallmap_n2i
  9. #include "pocketpy/xmacros/smallmap.h"
  10. #undef SMALLMAP_T__HEADER
  11. #define SMALLMAP_T__HEADER
  12. #define K c11_sv
  13. #define V uint16_t
  14. #define NAME c11_smallmap_s2n
  15. #define less(a, b) (c11_sv__cmp((a), (b)) < 0)
  16. #define equal(a, b) (c11_sv__cmp((a), (b)) == 0)
  17. #include "pocketpy/xmacros/smallmap.h"
  18. #undef SMALLMAP_T__HEADER
  19. #define SMALLMAP_T__HEADER
  20. #define K void*
  21. #define V int
  22. #define NAME c11_smallmap_p2i
  23. #include "pocketpy/xmacros/smallmap.h"
  24. #undef SMALLMAP_T__HEADER