diff options
| author | Mikhail Romanko <me@blankhex.com> | 2025-03-02 23:12:43 +0300 |
|---|---|---|
| committer | Mikhail Romanko <me@blankhex.com> | 2025-03-02 23:12:43 +0300 |
| commit | 2ca6a3e316f356c0467f52f80d8588ee8ed76314 (patch) | |
| tree | f02a325805b5cc132e0a5fc109aa0174e2c482fe | |
| parent | 6a578512273b6ff5fe33626982aa72710e5a3af0 (diff) | |
| download | bhlib-2ca6a3e316f356c0467f52f80d8588ee8ed76314.tar.gz | |
Fix BH_INT2PTR, add generic callback definition
| -rw-r--r-- | include/BH/Common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/BH/Common.h b/include/BH/Common.h index d4aadbe..1467b25 100644 --- a/include/BH/Common.h +++ b/include/BH/Common.h @@ -15,11 +15,12 @@ #define BH_UNUSED(x) (void)(x) #define BH_PTR2INT(x) ((intptr_t)(x)) -#define BH_INT2PTR(x) ((void*)(x)) +#define BH_INT2PTR(x) ((void*)((intptr_t)(x))) typedef int (*BH_EqualCallback)(const void *, const void *); typedef size_t (*BH_HashCallback)(const void *); +typedef void (*BH_GenericCallback)(void *); #endif /* BH_COMMON_H */ |
