/*---------------------------------------------------------------------------* Project: Horizon File: fnd_Result.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: 18508 $ *---------------------------------------------------------------------------*/ /*! @file :include nn/fnd.h */ #ifndef NN_FND_FND_RESULT_H_ #define NN_FND_FND_RESULT_H_ #ifdef __cplusplus #include namespace nn { namespace fnd { /* @brief Result コードの詳細 */ enum Description { DESCRIPTION_INVALID_NODE = 1, //!< 不正なノード DESCRIPTION_ALREADY_LISTED = 2, //!< リストにノードがない DESCRIPTION_OBSOLETE_RESULT = 1023 //!< Obsolete できるだけ早く他のエラーに修正すべき。 }; NN_DEFINE_RESULT_FUNC_LM(MakePermanentResult, Result::LEVEL_PERMANENT, Result::MODULE_NN_FND); NN_DEFINE_RESULT_CONST( MakeResultInvalidNode, Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_FND, nn::fnd::DESCRIPTION_INVALID_NODE ); NN_DEFINE_RESULT_CONST( MakeResultAlreadyListed, Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_FND, nn::fnd::DESCRIPTION_ALREADY_LISTED ); NN_DEFINE_RESULT_CONST( MakeResultInvalidAddress, Result::LEVEL_USAGE, Result::SUMMARY_INVALID_ARGUMENT, Result::MODULE_NN_FND, nn::Result::DESCRIPTION_INVALID_ADDRESS ); }} #endif // __cplusplus #endif /* NN_FND_FND_RESULT_H_ */