1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     dbg_PrintResultImpl.cpp
4 
5   Copyright (C)2009-2012 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: 46347 $
14  *---------------------------------------------------------------------------*/
15 
16 //
17 // Do not edit this file.
18 // This file is automatically generated.
19 //
20 
21 #include <nn/Result.h>
22 #include <nn/dbg/dbg_Result.h>
23 
24 
25 #define BEGIN_GET_RESULT_DESCRIPTION_STRING_IMPL \
26     const char* GetResultDescriptionStringImpl(nn::Result result) \
27     { \
28         (void)result; \
29         if (0) {}
30 
31 #define CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(nameSpace, description) \
32         else if (result.GetDescription() == nameSpace::description) return #description;
33 
34 #define END_GET_RESULT_DESCRIPTION_STRING_IMPL \
35         return 0; \
36     }
37 
38 namespace nn { namespace dbg { namespace detail {
39 
40 
41 
42     BEGIN_GET_RESULT_DESCRIPTION_STRING_IMPL
CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::dbg,DESCRIPTION_DBEUG_OUTPUT_IS_DISABLED)43         CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::dbg, DESCRIPTION_DBEUG_OUTPUT_IS_DISABLED)
44         CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::dbg, DESCRIPTION_DEBUGGER_NOT_PRESENT)
45         CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::dbg, DESCRIPTION_INACCESSIBLE_PAGE)
46     END_GET_RESULT_DESCRIPTION_STRING_IMPL
47 
48     void GetResultDescriptionStringImplKeeper()
49     {
50         const char* (*volatile f)(nn::Result) = GetResultDescriptionStringImpl;
51     }
52 
53 }}}
54