Committing genbindings changes [skip ci]

This commit is contained in:
halx99 2022-06-09 08:51:15 +00:00 committed by GitHub Actions
parent 6f4fe63208
commit c81b38c52d
1 changed files with 2 additions and 2 deletions

View File

@ -32895,8 +32895,8 @@ int lua_cocos2dx_FileUtils_getNewFilename(lua_State* tolua_S)
tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getNewFilename'", nullptr);
return 0;
}
std::string ret = cobj->getNewFilename(arg0);
lua_pushlstring(tolua_S,ret.c_str(),ret.length());
std::string_view ret = cobj->getNewFilename(arg0);
lua_pushlstring(tolua_S,ret.data(),ret.length());
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getNewFilename",argc, 1);