2012-04-19 14:35:52 +08:00
|
|
|
/****************************************************************************
|
|
|
|
Copyright (c) 2010 cocos2d-x.org
|
|
|
|
|
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __CC_COMMON_H__
|
|
|
|
#define __CC_COMMON_H__
|
|
|
|
|
|
|
|
#include "CCPlatformMacros.h"
|
|
|
|
|
|
|
|
NS_CC_BEGIN
|
|
|
|
|
2012-06-20 18:09:11 +08:00
|
|
|
/**
|
|
|
|
* @addtogroup platform
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
/// The max length of CCLog message.
|
|
|
|
static const int kMaxLogLen = 16*1024;
|
|
|
|
|
|
|
|
/**
|
|
|
|
@brief Output Debug message.
|
|
|
|
*/
|
2013-04-19 15:47:14 +08:00
|
|
|
void CC_DLL CCLog(const char * pszFormat, ...) CC_FORMAT_PRINTF(1, 2);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* lua can not deal with ...
|
|
|
|
*/
|
2012-08-29 17:32:47 +08:00
|
|
|
void CC_DLL CCLuaLog(const char * pszFormat);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
@brief Pop out a message box
|
|
|
|
*/
|
|
|
|
void CC_DLL CCMessageBox(const char * pszMsg, const char * pszTitle);
|
|
|
|
|
|
|
|
/**
|
2012-09-16 05:19:14 +08:00
|
|
|
@brief Enum the language type supported now
|
2012-04-19 14:35:52 +08:00
|
|
|
*/
|
|
|
|
typedef enum LanguageType
|
|
|
|
{
|
|
|
|
kLanguageEnglish = 0,
|
|
|
|
kLanguageChinese,
|
|
|
|
kLanguageFrench,
|
|
|
|
kLanguageItalian,
|
|
|
|
kLanguageGerman,
|
|
|
|
kLanguageSpanish,
|
2012-10-18 15:57:18 +08:00
|
|
|
kLanguageRussian,
|
2012-11-28 16:53:10 +08:00
|
|
|
kLanguageKorean,
|
2012-12-05 18:31:05 +08:00
|
|
|
kLanguageJapanese,
|
2013-02-11 23:29:56 +08:00
|
|
|
kLanguageHungarian,
|
|
|
|
kLanguagePortuguese,
|
2013-05-29 16:16:22 +08:00
|
|
|
kLanguageArabic,
|
|
|
|
kLanguageNorwegian
|
2012-04-19 14:35:52 +08:00
|
|
|
} ccLanguageType;
|
|
|
|
|
2012-06-20 18:09:11 +08:00
|
|
|
// end of platform group
|
|
|
|
/// @}
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
NS_CC_END
|
|
|
|
|
|
|
|
#endif // __CC_COMMON_H__
|