1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     common_DebugString.cpp
4 
5   Copyright (C)2009 Nintendo Co., Ltd.  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   $Rev: 15049 $
14  *---------------------------------------------------------------------------*/
15 
16 //
17 // このファイルを編集しないでください。
18 // このファイルは自動生成されます。
19 //
20 
21 #include <nn/Result.h>
22 #include <nn/dbg/dbg_Result.h>
23 
24 #define BEGIN_GET_RESULT_DESCRIPTION_STRING_IMPL \
25     const char* GetResultDescriptionStringImpl(nn::Result result) \
26     { \
27         (void)result; \
28         if (0) {}
29 
30 #define CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(nameSpace, description) \
31         else if (result.GetDescription() == nameSpace::description) return #description;
32 
33 #define END_GET_RESULT_DESCRIPTION_STRING_IMPL \
34         return 0; \
35     }
36 
37 namespace nn { namespace dbg {
38 
39 #ifndef NN_SWITCH_DISABLE_ASSERT_WARNING
40 
41 BEGIN_GET_RESULT_DESCRIPTION_STRING_IMPL
CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::dbg,DESCRIPTION_DBEUG_OUTPUT_IS_DISABLED)42     CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::dbg, DESCRIPTION_DBEUG_OUTPUT_IS_DISABLED)
43     CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::dbg, DESCRIPTION_DEBUGGER_NOT_PRESENT)
44     CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::dbg, DESCRIPTION_INACCESSIBLE_PAGE)
45 END_GET_RESULT_DESCRIPTION_STRING_IMPL
46 
47 void GetResultDescriptionStringImplKeeper()
48 {
49     const char* (*volatile f)(nn::Result) = GetResultDescriptionStringImpl;
50 }
51 
52 #else
53 
54 const char* GetResultDescriptionStringImpl() { return 0; }
55 
56 #endif
57 
58 }}
59