mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 20:40:18 +00:00
30 lines
593 B
C
30 lines
593 B
C
#pragma once
|
|
|
|
#include "pocketpy/common/vector.h"
|
|
#include "pocketpy/common/str.h"
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define SMALLMAP_T__HEADER
|
|
#define K uint16_t
|
|
#define V int
|
|
#define NAME c11_smallmap_n2i
|
|
#include "pocketpy/xmacros/smallmap.h"
|
|
#undef SMALLMAP_T__HEADER
|
|
|
|
|
|
#define SMALLMAP_T__HEADER
|
|
#define K c11_sv
|
|
#define V uint16_t
|
|
#define NAME c11_smallmap_s2n
|
|
#define less(a, b) (c11_sv__cmp((a), (b)) < 0)
|
|
#define equal(a, b) (c11_sv__cmp((a), (b)) == 0)
|
|
#include "pocketpy/xmacros/smallmap.h"
|
|
#undef SMALLMAP_T__HEADER
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |