[ci skip][AUTO]: updating luabinding & jsbinding automatically

This commit is contained in:
CocosRobot 2015-07-29 06:58:36 +00:00
parent 96d44e1078
commit 7a6664ab1f
2 changed files with 37 additions and 17 deletions

View File

@ -122,11 +122,12 @@
-- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine) -- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine)
-------------------------------- --------------------------------
-- Preload audio file.<br> -- @overload self, string, function
-- param filePath The file path of an audio. -- @overload self, string
-- @function [parent=#AudioEngine] preload -- @function [parent=#AudioEngine] preload
-- @param self -- @param self
-- @param #string filePath -- @param #string filePath
-- @param #function callback
-- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine) -- @return experimental::AudioEngine#experimental::AudioEngine self (return value: cc.experimental::AudioEngine)
-------------------------------- --------------------------------

View File

@ -594,7 +594,6 @@ int lua_cocos2dx_audioengine_AudioEngine_preload(lua_State* tolua_S)
{ {
int argc = 0; int argc = 0;
bool ok = true; bool ok = true;
#if COCOS2D_DEBUG >= 1 #if COCOS2D_DEBUG >= 1
tolua_Error tolua_err; tolua_Error tolua_err;
#endif #endif
@ -603,22 +602,42 @@ int lua_cocos2dx_audioengine_AudioEngine_preload(lua_State* tolua_S)
if (!tolua_isusertable(tolua_S,1,"ccexp.AudioEngine",0,&tolua_err)) goto tolua_lerror; if (!tolua_isusertable(tolua_S,1,"ccexp.AudioEngine",0,&tolua_err)) goto tolua_lerror;
#endif #endif
argc = lua_gettop(tolua_S) - 1; argc = lua_gettop(tolua_S)-1;
if (argc == 1) do
{ {
std::string arg0; if (argc == 2)
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.AudioEngine:preload");
if(!ok)
{ {
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_preload'", nullptr); std::string arg0;
return 0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.AudioEngine:preload");
if (!ok) { break; }
std::function<void (bool)> arg1;
do {
// Lambda binding for lua is not supported.
assert(false);
} while(0)
;
if (!ok) { break; }
cocos2d::experimental::AudioEngine::preload(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
} }
cocos2d::experimental::AudioEngine::preload(arg0); } while (0);
lua_settop(tolua_S, 1); ok = true;
return 1; do
} {
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccexp.AudioEngine:preload",argc, 1); if (argc == 1)
{
std::string arg0;
ok &= luaval_to_std_string(tolua_S, 2,&arg0, "ccexp.AudioEngine:preload");
if (!ok) { break; }
cocos2d::experimental::AudioEngine::preload(arg0);
lua_settop(tolua_S, 1);
return 1;
}
} while (0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ccexp.AudioEngine:preload",argc, 1);
return 0; return 0;
#if COCOS2D_DEBUG >= 1 #if COCOS2D_DEBUG >= 1
tolua_lerror: tolua_lerror: