Value:((void *)((uintptr_t)(ptr)))
This is a hack to fix warnings.
The idea is to use this everywhere that we get the "discarding const" warning by the compiler. That doesn't actually fix the real issue, but marks the place and you can search the code for discard_const.
Please use this macro only when there is no other way to fix the warning. We should use this function in only in a very few places.
Also, please call this via the discard_const_p() macro interface, as that makes the return type safe.
Definition at line 70 of file c_macro.h.