#define PK_IMPL_MEM_TYPES #include "../pkmem-types.h" #include "../pkmacros.h" #include int main(int argc, char *argv[]) { (void)argc; (void)argv; (void)stdout; // pk_handle_validate { enum PK_HANDLE_VALIDATION res; struct pk_handle h, bh; bh.bucketIndex = 2; bh.itemIndex = 2; h.bucketIndex = 0; h.itemIndex = 0; res = pk_handle_validate(h, bh, 1024); PK_LOGV_INF("pk_handle_validate 000: %i\n", res); h.bucketIndex = 3; h.itemIndex = 0; res = pk_handle_validate(h, bh, 1024); PK_LOGV_INF("pk_handle_validate 001: %i\n", res); h.bucketIndex = 2; h.itemIndex = 3; res = pk_handle_validate(h, bh, 1024); PK_LOGV_INF("pk_handle_validate 002: %i\n", res); h = PK_HANDLE_MAX; res = pk_handle_validate(h, bh, 1024); PK_LOGV_INF("pk_handle_validate 003: %i\n", res); } return 0; }