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
Mikhail Romanko 692b5b4297 Sync to the latest version.
Can be broken or partially implemented.
2024-04-23 23:45:43 +03:00

26 lines
661 B
C

#ifndef BHLIB_H
#define BHLIB_H
#include <bh/config.h>
#include <stddef.h>
#include "platform.h"
#define BH_INT_TO_PTR(x) \
((void *)((bh_intptr_t)(x)))
#define BH_UINT_TO_PTR(x) \
((void *)((bh_uintptr_t)(x)))
#define BH_PTR_TO_INT(x) \
((bh_intptr_t)(x))
#define BH_PTR_TO_UINT(x) \
((bh_uintptr_t)(x))
typedef int (*bh_equal_cb_t)(const void *, const void *);
typedef size_t (*bh_hash_cb_t)(const void *);
#endif /* BHLIB_H */