This repository has been archived on 2026-04-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
bhlib-old/include/bh/bh.h

26 lines
661 B
C
Raw Normal View History

2024-04-13 14:52:29 +03:00
#ifndef BHLIB_H
#define BHLIB_H
2024-04-14 22:32:58 +03:00
#include <bh/config.h>
2024-04-13 14:52:29 +03:00
#include <stddef.h>
#include "platform.h"
2024-04-13 14:52:29 +03:00
#define BH_INT_TO_PTR(x) \
((void *)((bh_intptr_t)(x)))
2024-04-13 14:52:29 +03:00
#define BH_UINT_TO_PTR(x) \
((void *)((bh_uintptr_t)(x)))
2024-04-13 14:52:29 +03:00
#define BH_PTR_TO_INT(x) \
((bh_intptr_t)(x))
2024-04-13 14:52:29 +03:00
#define BH_PTR_TO_UINT(x) \
((bh_uintptr_t)(x))
2024-04-13 14:52:29 +03:00
typedef int (*bh_equal_cb_t)(const void *, const void *);
typedef size_t (*bh_hash_cb_t)(const void *);
#endif /* BHLIB_H */