- Reaction score
- 1,712
You probably seen this macro used in C++:
The (non-tested) equivalent in C is:
Code:
#define MACRO_PTR_ADD( P, BYTES ) \
((decltype( P ))(((u8 *)P) + (BYTES)))
The (non-tested) equivalent in C is:
Code:
#define MACRO_PTR_ADD( P, BYTES ) \
((__typeof__( P ))(((u8 *)P) + (BYTES)))