/*---------------------------------------------------------------------------* Copyright (C) Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. *---------------------------------------------------------------------------*/ #ifndef _CAFE_GX2R_CPP_H_ #define _CAFE_GX2R_CPP_H_ #ifdef __cplusplus /// @addtogroup GX2RGroup /// @{ /// \brief Allow GX2RResourceFlags flags to be combined without casting GX2_INLINE GX2RResourceFlags operator |(GX2RResourceFlags x, GX2RResourceFlags y) { return (GX2RResourceFlags)((s32)x | (s32)y); } GX2_INLINE GX2RResourceFlags operator |(GX2RResourceFlags x, s32 y) { return (GX2RResourceFlags)((s32)x | (s32)y); } GX2_INLINE GX2RResourceFlags operator |(s32 x, GX2RResourceFlags y) { return (GX2RResourceFlags)((s32)x | (s32)y); } GX2_INLINE GX2RDebugOptions operator |(GX2RDebugOptions x, GX2RDebugOptions y) { return (GX2RDebugOptions)((s32)x | (s32)y); } /// @} /// @addtogroup GX2UTGroup /// @{ namespace GX2UT { //TODO: C++ operators, templates } /// @} #endif //__cplusplus #endif