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:
parent
2bc159e518
commit
5e8e01f110
7 changed files with 76 additions and 41 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue