/*---------------------------------------------------------------------------* Project: NintendoWare File: dev_Config.h Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo and/or its licensed developers and are protected by national and international copyright laws. 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. The content herein is highly confidential and should be handled accordingly. $Revision: 31311 $ *---------------------------------------------------------------------------*/ #ifndef NW_DEV_CONFIG_H_ #define NW_DEV_CONFIG_H_ //! ユーザー環境でプロファイルを行う場合は以下のマクロを参考に独自に定義してください。 //! 定義するとグラフィックスライブラリ内でのプロファイルのマクロ有効にします。 // #define NW_PROFILE_ENABLED //! NW_DEV_ENABLED と NW_PROFILE_ENABLED がともに定義されていたらプロファイルマクロを有効にします。 #if defined( NW_DEV_ENABLED ) && defined( NW_PROFILE_ENABLED ) #define NW_INITIALIZE_PROFILE(maxReport, allocator) nw::dev::ProfileCenter::Initialize(maxReport, allocator) #define NW_FINALIZE_PROFILE(allocator) nw::dev::ProfileCenter::Finalize(allocator) #define NW_PROFILE(name) nw::dev::AutoProfile NW_profile(name, nw::dev::ProfileCenter::GetProfileManager()) #define NW_DUMP_PROFILE() nw::dev::ProfileCenter::GetProfileManager()->DumpReports() #define NW_CLEAR_PROFILE() nw::dev::ProfileCenter::GetProfileManager()->ClearReports() #else #define NW_INITIALIZE_PROFILE(maxReport, allocator) (void)0 #define NW_FINALIZE_PROFILE(allocator) (void)0 #define NW_PROFILE(name) (void)0 #define NW_DUMP_PROFILE() (void)0 #define NW_CLEAR_PROFILE() (void)0 #endif /* NW_DEV_CONFIG_H_ */ #endif