1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: test_Api.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 #include <nn/Result.h> 17 #include <nn/dbg.h> 18 19 namespace nn{ namespace test{ 20 21 #if !defined(NN_SWITCH_DISABLE_ASSERT_WARNING) PrintResult(nn::Result result)22 void PrintResult(nn::Result result) 23 { 24 nn::dbg::detail::TPrintf(" Level: %s (%d)\n", nn::dbg::detail::GetLevelString(result), result.GetLevel()); 25 nn::dbg::detail::TPrintf(" Summary: %s (%d)\n", nn::dbg::detail::GetSummaryString(result), result.GetSummary()); 26 nn::dbg::detail::TPrintf(" Module: %s (%d)\n", nn::dbg::detail::GetModuleString(result), result.GetModule()); 27 nn::dbg::detail::TPrintf(" Description: %s (%d)\n", nn::dbg::detail::GetDescriptionString(result), result.GetDescription()); 28 } 29 #else 30 void PrintResult(nn::Result result) 31 { 32 nn::dbg::detail::TPrintf("Result:%08X\n", result.GetPrintableBits()); 33 } 34 #endif 35 36 }} 37