1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-16 12:54:40 +00:00

z_view.c gc-eu-mq OK (#1681)

* z_view.c retail

* Replace PERSPECTIVE_EDITOR_ACTIVE, adjust PRINTF selection condition

* Macro-ify View_ErrorCheckEyePosition
This commit is contained in:
Tharo 2024-02-01 01:09:16 +00:00 committed by GitHub
parent 2bc159e518
commit 5e8e01f110
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 76 additions and 41 deletions

View file

@ -100,13 +100,17 @@
#define CHECK_FLAG_ALL(flags, mask) (((flags) & (mask)) == (mask))
#if OOT_DEBUG
#define PRINTF osSyncPrintf
#elif defined(__sgi) /* IDO compiler */
// IDO doesn't support variadic macros, but it merely throws a warning for the
// number of arguments not matching the definition (warning 609) instead of
// throwing an error. We suppress this warning and rely on GCC to catch macro
// argument errors instead.
// Note some tools define __sgi but preprocess with a modern cpp implementation,
// ensure that these do not use the IDO workaround to avoid errors.
#define IDO_PRINTF_WORKAROUND (__sgi && !__GNUC__ && !PERMUTER && !M2CTX)
#if OOT_DEBUG
#define PRINTF osSyncPrintf
#elif IDO_PRINTF_WORKAROUND
#define PRINTF(args) (void)0
#else
#define PRINTF(format, ...) (void)0