/*---------------------------------------------------------------------------*
Project: Horizon
File: CTR.h
Copyright (C) 2009-2011 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.
$Rev: 32251 $
*---------------------------------------------------------------------------*/
/*!
@file
:include nn/config.h
*/
#ifndef NN_CONFIG_PLATFORM_CAFE_H_
#define NN_CONFIG_PLATFORM_CAFE_H_
//! @addtogroup nn_config
//! @{
//! @name Endianness
//! @{
//---------------------------------------------------------------------------
//! @brief Defines the platform's endianness.
//!
//! Takes the value defined for NN_ENDIAN_VALUE_BIG or NN_ENDIAN_VALUE_LITTLE depending on the endianness of the target platform.
//!
//! You can use this macro to create branching conditions for the preprocessor that compare against this value. This enables you to create compilation targets with different endianness.
//!
//---------------------------------------------------------------------------
#define NN_ENDIAN NN_ENDIAN_VALUE_BIG
//---------------------------------------------------------------------------
//! @brief Defines big endian.
//!
//! NN_ENDIAN takes this value when the target platform is big endian.
//!
//---------------------------------------------------------------------------
#define NN_ENDIAN_VALUE_BIG 'B'
//---------------------------------------------------------------------------
//! @brief Defines little endian.
//!
//! NN_ENDIAN takes this value when the target platform is big endian.
//!
//---------------------------------------------------------------------------
#define NN_ENDIAN_VALUE_LITTLE 'L'
//! @}
//! @}
#ifdef IOP_BUILD
#define NN_PLATFORM_CAFE_IOS
#else
#define NN_PLATFORM_HAS_STANDARD_LIBC
#endif
#ifndef NN_SYSTEM_PROCESS
#define NN_SYSTEM_PROCESS
#endif
#if defined(NDEBUG)
#define NN_BUILD_RELEASE
#elif defined(DEBUG)
#define NN_BUILD_DEVELOPMENT
#else
#define NN_BUILD_DEBUG
#endif
#ifndef NN_DEBUG_PRINT
#define NN_DEBUG_PRINT false
#endif
#ifdef NN_BUILD_RELEASE
#if !NN_DEBUG_PRINT
#ifndef NN_SWITCH_DISABLE_DEBUG_PRINT
#define NN_SWITCH_DISABLE_DEBUG_PRINT
#endif
#ifndef NN_SWITCH_DISABLE_DEBUG_PRINT_FOR_SDK
#define NN_SWITCH_DISABLE_DEBUG_PRINT_FOR_SDK
#endif
#endif
#endif
/* NN_CONFIG_PLATFORM_CAFE_H_ */
#endif