commit e7bdd969a484039400c84d9a7f3b0b71f35ba98b parent ef9a857edea6b3bc981272bf80dcd3991c47149a Author: vaplv <vaplv@free.fr> Date: Thu, 10 Oct 2013 15:00:22 +0200 Add the OFFSET_PTR helper macro Diffstat:
| M | src/rsys.h | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/rsys.h b/src/rsys.h @@ -134,5 +134,7 @@ #define STR__(X) #X #define STR(X) STR__(X) +#define OFFSET_PTR(Ptr, Offset) (void*)((uintptr_t)(Ptr) + (Offset)) + #endif /* SNLSYS_H */