diff options
Diffstat (limited to 'jove.h')
| -rw-r--r-- | jove.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +#ifndef _JOVE_H +#define _JOVE_H 1 + +#define NORETURN __attribute__((noreturn)) +#define PACKED __attribute__((packed)) + +#define ALIGN(n) __attribute__((aligned(n))) +#define PAGEALIGN __attribute__((aligned(0x1000))) + +NORETURN void hcf(void); + +extern int errno; +#define reterr(e) \ + errno = e; \ + return 0 + +#define EBADOBJ -1 +#define EOOB -2 + +#endif |
