/*---------------------------------------------------------------------------* Project: Horizon File: dbg_PrintResult.h Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Rev: 36977 $ *--------------------------------------------------------------------------- */ /* Please see man pages for details */ #ifndef NN_DBG_DBG_PRINTRESULT_H_ #define NN_DBG_DBG_PRINTRESULT_H_ #include #ifdef __cplusplus namespace nn { namespace dbg { /* */ const char* GetLevelString(nn::Result result); /* */ const char* GetModuleString(nn::Result result); /* */ const char* GetSummaryString(nn::Result result); /* */ const char* GetDescriptionString(nn::Result result); /* */ void PrintResult(Result result); /* */ void TPrintResult(Result result); }} #ifndef NN_SWITCH_DISABLE_ASSERT_WARNING #define NN_DBG_DECLARE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(libname) \ namespace nn { namespace libname { \ void GetResultDescriptionStringImplKeeper(); \ }} #define NN_DBG_USE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(libname) (::nn::libname::GetResultDescriptionStringImplKeeper()) #else #define NN_DBG_DECLARE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(libname) #define NN_DBG_USE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(libname) (void)0 #endif #ifndef NN_SWITCH_DISABLE_DEBUG_PRINT #define NN_DBG_CHECK_RESULT(exp) NN_UTIL_PANIC_IF_FAILED(exp) #define NN_DBG_PRINT_RESULT(exp) ::nn::dbg::PrintResult(exp) #define NN_DBG_TPRINT_RESULT_(exp) ::nn::dbg::TPrintResult(exp) #else #define NN_DBG_CHECK_RESULT(exp) ((void)(exp)) #define NN_DBG_PRINT_RESULT(exp) ((void)(exp)) #define NN_DBG_TPRINT_RESULT_(exp) ((void)(exp)) #endif #endif // ifdef __cplusplus #endif /* NN_DBG_DBG_RESULT_H_ */