1 /*---------------------------------------------------------------------------* 2 Project: NintendoWare 3 File: dev_Config.h 4 5 Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Revision: 26089 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NW_DEV_CONFIG_H_ 17 #define NW_DEV_CONFIG_H_ 18 19 //! ユーザー環境でプロファイルを行う場合は以下のマクロを参考に独自に定義してください。 20 21 //! 定義するとグラフィックスライブラリ内でのプロファイルのマクロ有効にします。 22 // #define NW_PROFILE_ENABLED 23 24 //! NW_DEV_ENABLED と NW_PROFILE_ENABLED がともに定義されていたらプロファイルマクロを有効にします。 25 #if defined( NW_DEV_ENABLED ) && defined( NW_PROFILE_ENABLED ) 26 27 #define NW_INITIALIZE_PROFILE(maxReport, allocator) nw::dev::ProfileCenter::Initialize(maxReport, allocator) 28 #define NW_FINALIZE_PROFILE(allocator) nw::dev::ProfileCenter::Finalize(allocator) 29 #define NW_PROFILE(name) nw::dev::AutoProfile NW_profile(name, nw::dev::ProfileCenter::GetProfileManager()) 30 #define NW_DUMP_PROFILE() nw::dev::ProfileCenter::GetProfileManager()->DumpReports() 31 #define NW_CLEAR_PROFILE() nw::dev::ProfileCenter::GetProfileManager()->ClearReports() 32 33 #else 34 35 #define NW_INITIALIZE_PROFILE(maxReport, allocator) (void)0 36 #define NW_FINALIZE_PROFILE(allocator) (void)0 37 #define NW_PROFILE(name) (void)0 38 #define NW_DUMP_PROFILE() (void)0 39 #define NW_CLEAR_PROFILE() (void)0 40 41 #endif 42 43 /* NW_DEV_CONFIG_H_ */ 44 #endif 45