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