smallmap.c 476 B

123456789101112131415161718
  1. #include "pocketpy/common/smallmap.h"
  2. #define SMALLMAP_T__SOURCE
  3. #define K uint16_t
  4. #define V int
  5. #define NAME c11_smallmap_n2i
  6. #include "pocketpy/xmacros/smallmap.h"
  7. #undef SMALLMAP_T__SOURCE
  8. #define SMALLMAP_T__SOURCE
  9. #define K c11_stringview
  10. #define V uint16_t
  11. #define NAME c11_smallmap_s2n
  12. #define less(a, b) (c11_string__cmp((a), (b)) < 0)
  13. #define equal(a, b) (c11_string__cmp((a), (b)) == 0)
  14. #include "pocketpy/xmacros/smallmap.h"
  15. #undef SMALLMAP_T__SOURCE