summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlois Klink <alois@aloisklink.com>2022-12-30 13:56:40 +0000
committerAndreas Schneider <asn@cryptomilk.org>2023-01-29 10:35:42 +0100
commit4e2e7c16d03d441fa544891974c90b0ecc49b82e (patch)
tree32b63aa7ee51214cee530ceaf6487ac90d2ff6f0
parent09621179af67535788a67957a910d9f17c975b45 (diff)
downloadcmocka-4e2e7c16d03d441fa544891974c90b0ecc49b82e.zip
cmocka-4e2e7c16d03d441fa544891974c90b0ecc49b82e.tar.gz
cmocka-4e2e7c16d03d441fa544891974c90b0ecc49b82e.tar.bz2
include: Remove cast_ptr_to_uintmax_type macro
No longer required, as CMocka can now store pointers directly in a CMockaValueData without casting pointers to `uintmax_t` (not safe on some platforms). BREAKING CHANGE: The cast_ptr_to_uintmax_type() macro has been removed. Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--include/cmocka.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/cmocka.h b/include/cmocka.h
index f85d770..db590f5 100644
--- a/include/cmocka.h
+++ b/include/cmocka.h
@@ -68,10 +68,6 @@ int __stdcall IsDebuggerPresent();
#define cast_to_uintptr_type(value) \
((uintptr_t)(value))
-/* Perform a cast of a pointer to uintmax_t */
-#define cast_ptr_to_uintmax_type(value) \
- cast_to_uintmax_type(cast_to_uintptr_type(value))
-
/**
* Perform a cast from an integer to CMockaValueData.
*