diff options
Diffstat (limited to 'scripts/dietc_helpers.h')
-rw-r--r-- | scripts/dietc_helpers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/dietc_helpers.h b/scripts/dietc_helpers.h new file mode 100644 index 0000000..a5e00ac --- /dev/null +++ b/scripts/dietc_helpers.h @@ -0,0 +1,5 @@ +extern void *memset(void *, int, long unsigned int); +#define BINARY(a, op, b) a op b +#define PTR_BINARY(a, op, b) ((void*)(a) op (unsigned long)(b)) +#define MEMZERO(obj) memset(&obj, 0, sizeof(obj)) +#define FIELDPTR(sptr, field) (&(sptr -> field)) |