aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2025-03-02 23:12:43 +0300
committerMikhail Romanko <me@blankhex.com>2025-03-02 23:12:43 +0300
commit2ca6a3e316f356c0467f52f80d8588ee8ed76314 (patch)
treef02a325805b5cc132e0a5fc109aa0174e2c482fe
parent6a578512273b6ff5fe33626982aa72710e5a3af0 (diff)
downloadbhlib-2ca6a3e316f356c0467f52f80d8588ee8ed76314.tar.gz
Fix BH_INT2PTR, add generic callback definition
-rw-r--r--include/BH/Common.h3
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 */