mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-16 21:05:12 +00:00
Add "do {} while (0);" to CLOSE_DISPS (#2025)
This commit is contained in:
parent
d495436190
commit
9eec8af498
58 changed files with 37 additions and 159 deletions
|
@ -187,9 +187,11 @@ extern struct GraphicsContext* __gfxCtx;
|
|||
(void)__gfxCtx; \
|
||||
Graph_OpenDisps(dispRefs, gfxCtx, file, line)
|
||||
|
||||
#define CLOSE_DISPS(gfxCtx, file, line) \
|
||||
Graph_CloseDisps(dispRefs, gfxCtx, file, line); \
|
||||
} \
|
||||
#define CLOSE_DISPS(gfxCtx, file, line) \
|
||||
do { \
|
||||
Graph_CloseDisps(dispRefs, gfxCtx, file, line); \
|
||||
} while (0); \
|
||||
} \
|
||||
(void)0
|
||||
|
||||
#define GRAPH_ALLOC(gfxCtx, size) Graph_Alloc(gfxCtx, size)
|
||||
|
@ -221,7 +223,7 @@ extern struct GraphicsContext* __gfxCtx;
|
|||
s32 __dispPad
|
||||
|
||||
#define CLOSE_DISPS(gfxCtx, file, line) \
|
||||
(void)0; \
|
||||
do {} while (0); \
|
||||
} \
|
||||
(void)0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue