/*---------------------------------------------------------------------------* Project: Horizon File: os_EnvironmentSelect.h Copyright (C)2009 Nintendo Co., Ltd. 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: 24389 $ *---------------------------------------------------------------------------*/ #ifndef NN_OS_OS_ENVIRONMENTSELECT_H_ #define NN_OS_OS_ENVIRONMENTSELECT_H_ #include #ifdef __cplusplus namespace nn { namespace os { /*!--------------------------------------------------------------------------* @brief アプリケーションで使用できるメモリの合計最大量を取得します。 この値はプログラムの実行中に変化することはありません。 アプリケーションでは GetAppMemorySize() - GetUsingMemorySize() Byte の ヒープまたはデバイスメモリの組み合わせを追加で 割り当てることができます。 @return アプリケーションで使用できるメモリの合計最大 Byte 数を返します。 *---------------------------------------------------------------------------*/ size_t GetAppMemorySize(); /*!--------------------------------------------------------------------------* @brief プログラムに現在割り当てられているメモリの合計サイズを取得します。 プログラムに割り当てられているメモリには プログラムの static 領域、ヒープ、デバイスメモリなどが含まれます。 @return プログラムに現在割り当てられているメモリの合計 Byte 数を返します。 *---------------------------------------------------------------------------*/ size_t GetUsingMemorySize(); }} #endif #if defined NN_PLATFORM_CTR #include #ifdef __cplusplus namespace nn { namespace os { using namespace CTR; }} #endif #else #error platform not selected #endif #endif // ifndef NN_OS_OS_ENVIRONMENTSELECT_H_