mirror of
https://github.com/zeldaret/oot
synced 2026-10-07 05:21:46 -04:00
1bef952ff6
* UNUSED attribute for variables and parameters in static segments and for all stack padding variables * No more unused variable warnings * Make pad variable names consistent * Small cleanup * Macro-ify stack padding * Use stack padding for more variables not previously named pad * Format * Check unused parameter on gamestate overlays and pause menu Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Merge 2x u8 stack pads into 1x s16 stack pad in en_ik * Remove UNUSED from function prototypes * Suggested changes Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * More unused variables * Fix merge, updated for new versions * Format * questionable UNUSED and STACK_PAD more usage * format * format * one more STACK_PADS in z_kaleido_map.c --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
22 lines
372 B
C
22 lines
372 B
C
#ifndef STACK_PAD_H
|
|
#define STACK_PAD_H
|
|
|
|
#include "attributes.h"
|
|
|
|
#ifndef GLUE
|
|
#define GLUE(a, b) a##b
|
|
#endif
|
|
#ifndef GLUE2
|
|
#define GLUE2(a, b) GLUE(a, b)
|
|
#endif
|
|
|
|
#ifndef NON_MATCHING
|
|
#define STACK_PAD(type) UNUSED type GLUE2(__stack_pad_, __LINE__)
|
|
#define STACK_PADS(type, n) STACK_PAD(type)[(n)]
|
|
#else
|
|
#define STACK_PAD(type)
|
|
#define STACK_PADS(type, n)
|
|
#endif
|
|
|
|
#endif
|