/*---------------------------------------------------------------------------* Project: NintendoWare File: os_UtilityCTR.cpp Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo and/or its licensed developers and are protected by national and international copyright laws. 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. The content herein is highly confidential and should be handled accordingly. $Revision: 31311 $ *---------------------------------------------------------------------------*/ #include #include #include #include #include #include namespace nw { namespace os { namespace internal { /*!--------------------------------------------------------------------------* Name: VPrintf @brief 引数リスト指定で書式付き文字列を出力します。 @param[in] fmt 出力文字列フォーマット @param[in] vlist 可変長引数リスト @return None. *---------------------------------------------------------------------------*/ NW_WEAK_SYMBOL void VPrintf(const char *fmt, std::va_list vlist) { nndbgDetailVPrintf(fmt, vlist); } } // namespace internal /*!--------------------------------------------------------------------------* Name: Halt @brief プログラムを異常終了します。 @return None. *---------------------------------------------------------------------------*/ void Halt() { (void)nn::dbg::Break(); } /*!--------------------------------------------------------------------------* Name: VSNPrintf @brief 引数リスト指定で、与えられたバッファへ書式付き文字列を出力します。 @param[out] dst @param[in] len @param[in] fmt 出力文字列フォーマット @param[in] vlist 可変長引数リスト @return 出力文字列の文字列長 ('\0'を除く) *---------------------------------------------------------------------------*/ int VSNPrintf(char* dst, size_t len, const char* fmt, std::va_list vlist) { return vsnprintf(dst, len, fmt, vlist); } } // namespace os } // namespace nw