You've already forked Diddy-Kong-Racing
mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-03-10 11:36:09 -07:00
* Massive libultra changes * Fix the build! * Remove crc comment that seemd to break the score script for some reason. * Update README score. * Apply some suggestions * rename sins and coss funcs.
25 lines
457 B
C
25 lines
457 B
C
#ifndef __MACROS_H__
|
|
#define __MACROS_H__
|
|
|
|
#define ALIGNED(x) __attribute__((aligned(x)))
|
|
|
|
#define ARRLEN(x) ((s32)(sizeof(x) / sizeof(x[0])))
|
|
|
|
#define STUBBED_PRINTF(x) ((void)(x))
|
|
|
|
#define UNUSED __attribute__((unused))
|
|
|
|
#ifndef __GNUC__
|
|
#define __attribute__(x)
|
|
#endif
|
|
|
|
#define ALIGN8(val) (((val) + 7) & ~7)
|
|
|
|
#define STACK(stack, size) \
|
|
u64 stack[ALIGN8(size) / sizeof(u64)]
|
|
|
|
#define STACK_START(stack) \
|
|
((u8*)(stack) + sizeof(stack))
|
|
|
|
#endif
|