mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-15 06:06:04 +00:00
2152d1df2d
* Create stack.h for STACK/STACK_TOP * Import libleo from Decompollaborate/n64dd Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> Co-authored-by: Elliptic Ellipsis <elliptic.ellipsis@gmail.com> * Use (unsigned) int when in mdebug * Apply suggestions from code review Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * Use && in leocmdex.c * Use proper names for character tables, revert sNonKanjiIndices * Fix incorrect OSMesg casts * Use LEO_ERROR_GOOD even where docs say 0 Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * Remove "Presumably" comment * Whitespace * Remove redundant (debug-only) returns --------- Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com> Co-authored-by: Elliptic Ellipsis <elliptic.ellipsis@gmail.com> Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com>
10 lines
175 B
C
10 lines
175 B
C
#ifndef STACK_H
|
|
#define STACK_H
|
|
|
|
#define STACK(stack, size) \
|
|
u64 stack[ALIGN8(size) / sizeof(u64)]
|
|
|
|
#define STACK_TOP(stack) \
|
|
((u8*)(stack) + sizeof(stack))
|
|
|
|
#endif
|