smallmap.h 806 B

1234567891011121314151617181920212223242526272829303132333435
  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 py_Name
  7. #define V int
  8. #define NAME c11_smallmap_n2d
  9. #include "pocketpy/xmacros/smallmap.h"
  10. #undef SMALLMAP_T__HEADER
  11. #define SMALLMAP_T__HEADER
  12. #define K int
  13. #define V int
  14. #define NAME c11_smallmap_d2d
  15. #include "pocketpy/xmacros/smallmap.h"
  16. #undef SMALLMAP_T__HEADER
  17. #define SMALLMAP_T__HEADER
  18. #define K c11_sv
  19. #define V int
  20. #define NAME c11_smallmap_v2d
  21. #define less(a, b) (c11_sv__cmp((a), (b)) < 0)
  22. #define equal(a, b) c11__sveq((a), (b))
  23. #include "pocketpy/xmacros/smallmap.h"
  24. #undef SMALLMAP_T__HEADER
  25. #define SMALLMAP_T__HEADER
  26. #define K void*
  27. #define V py_i64
  28. #define NAME c11_smallmap_p2i
  29. #include "pocketpy/xmacros/smallmap.h"
  30. #undef SMALLMAP_T__HEADER