diff --git a/cmake/Modules/AxisConfigDefine.cmake b/cmake/Modules/AxisConfigDefine.cmake index 90d83bdf06..3cf20ad475 100644 --- a/cmake/Modules/AxisConfigDefine.cmake +++ b/cmake/Modules/AxisConfigDefine.cmake @@ -109,7 +109,7 @@ endif() # Set macro definitions for special platforms function(use_axis_compile_define target) - target_compile_definitions(${target} PUBLIC $<$:COCOS2D_DEBUG=1>) + target_compile_definitions(${target} PUBLIC $<$:AXIS_DEBUG=1>) # !important axis not use double precision # target_compile_definitions(${target} PUBLIC CP_USE_CGTYPES=0) diff --git a/examples/SimpleSnake/Classes/SimpleSnakeScene.cpp b/examples/SimpleSnake/Classes/SimpleSnakeScene.cpp index 07b4c69a11..f0aff72b73 100644 --- a/examples/SimpleSnake/Classes/SimpleSnakeScene.cpp +++ b/examples/SimpleSnake/Classes/SimpleSnakeScene.cpp @@ -44,7 +44,7 @@ static void problemLoading(const char* filename) inline void setNodeIgnoreDesignScale(axis::Node* node) { - CCASSERT(node, "node pointer cannot be null."); + AXASSERT(node, "node pointer cannot be null."); Size actualFrameSize = Director::getInstance()->getOpenGLView()->getFrameSize(); Size actualWinSize = Director::getInstance()->getWinSizeInPixels(); diff --git a/extensions/scripting/lua-bindings/manual/3d/lua_axis_3d_manual.cpp b/extensions/scripting/lua-bindings/manual/3d/lua_axis_3d_manual.cpp index cc5ae1d27b..79797efa26 100644 --- a/extensions/scripting/lua-bindings/manual/3d/lua_axis_3d_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/3d/lua_axis_3d_manual.cpp @@ -35,18 +35,18 @@ int lua_axis_3d_MeshRenderer_getAABB(lua_State* L) int argc = 0; axis::MeshRenderer* cobj = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.MeshRenderer", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::MeshRenderer*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_MeshRenderer_getAABB'", nullptr); @@ -64,7 +64,7 @@ int lua_axis_3d_MeshRenderer_getAABB(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getAABB", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_MeshRenderer_getAABB'.", &tolua_err); #endif @@ -75,11 +75,11 @@ int lua_axis_3d_MeshRenderer_createAsync(lua_State* L) { int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(L, 1, "ax.MeshRenderer", 0, &tolua_err)) goto tolua_lerror; #endif @@ -99,7 +99,7 @@ int lua_axis_3d_MeshRenderer_createAsync(lua_State* L) if (!ok) break; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 4, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -132,7 +132,7 @@ int lua_axis_3d_MeshRenderer_createAsync(lua_State* L) if (!ok) break; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 3, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -158,7 +158,7 @@ int lua_axis_3d_MeshRenderer_createAsync(lua_State* L) ok = true; luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d", "ax.MeshRenderer:createAsync", argc, 3); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_MeshRenderer_createAsync'.", &tolua_err); #endif @@ -186,7 +186,7 @@ bool luaval_to_terraindata(lua_State* L, int lo, axis::Terrain::TerrainData* out tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); ok = false; #endif @@ -332,11 +332,11 @@ int lua_axis_3d_Terrain_create(lua_State* L) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(L, 1, "ax.Terrain", 0, &tolua_err)) goto tolua_lerror; #endif @@ -374,7 +374,7 @@ int lua_axis_3d_Terrain_create(lua_State* L) } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Terrain:create", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_Terrain_create'.", &tolua_err); #endif @@ -386,16 +386,16 @@ int lua_axis_3d_Terrain_getHeight(lua_State* L) int argc = 0; axis::Terrain* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.Terrain", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Terrain*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_Terrain_getHeight'", nullptr); @@ -504,7 +504,7 @@ int lua_axis_3d_Terrain_getHeight(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getHeight", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_Terrain_getHeight'.", &tolua_err); #endif @@ -517,16 +517,16 @@ int lua_axis_3d_Terrain_getIntersectionPoint(lua_State* tolua_S) int argc = 0; axis::Terrain* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Terrain", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Terrain*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_3d_Terrain_getIntersectionPoint'", nullptr); @@ -580,7 +580,7 @@ int lua_axis_3d_Terrain_getIntersectionPoint(lua_State* tolua_S) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_3d_Terrain_getIntersectionPoint'.", &tolua_err); #endif @@ -606,11 +606,11 @@ int lua_axis_3d_Bundle3D_getTrianglesList(lua_State* L) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(L, 1, "ax.Bundle3D", 0, &tolua_err)) goto tolua_lerror; #endif @@ -633,7 +633,7 @@ int lua_axis_3d_Bundle3D_getTrianglesList(lua_State* L) } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Bundle3D:getTrianglesList", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_Bundle3D_getTrianglesList'.", &tolua_err); #endif @@ -668,18 +668,18 @@ int lua_axis_3d_AABB_reset(lua_State* L) axis::AABB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.AABB", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_AABB_reset'", nullptr); @@ -699,7 +699,7 @@ int lua_axis_3d_AABB_reset(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AABB:reset", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_AABB_reset'.", &tolua_err); #endif @@ -712,18 +712,18 @@ int lua_axis_3d_AABB_set(lua_State* L) axis::AABB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.AABB", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_AABB_set'", nullptr); @@ -748,7 +748,7 @@ int lua_axis_3d_AABB_set(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AABB:set", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_AABB_set'.", &tolua_err); #endif @@ -761,18 +761,18 @@ int lua_axis_3d_AABB_transform(lua_State* L) axis::AABB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.AABB", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_AABB_transform'", nullptr); @@ -794,7 +794,7 @@ int lua_axis_3d_AABB_transform(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AABB:transform", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_AABB_transform'.", &tolua_err); #endif @@ -807,18 +807,18 @@ int lua_axis_3d_AABB_getCenter(lua_State* L) axis::AABB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.AABB", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_AABB_getCenter'", nullptr); @@ -838,7 +838,7 @@ int lua_axis_3d_AABB_getCenter(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AABB:getCenter", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_AABB_getCenter'.", &tolua_err); #endif @@ -851,18 +851,18 @@ int lua_axis_3d_AABB_isEmpty(lua_State* L) axis::AABB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.AABB", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_AABB_isEmpty'", nullptr); @@ -882,7 +882,7 @@ int lua_axis_3d_AABB_isEmpty(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AABB:isEmpty", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_AABB_isEmpty'.", &tolua_err); #endif @@ -895,18 +895,18 @@ int lua_axis_3d_AABB_getCorners(lua_State* L) axis::AABB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.AABB", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_AABB_getCorners'", nullptr); @@ -928,7 +928,7 @@ int lua_axis_3d_AABB_getCorners(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AABB:getCorners", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_AABB_getCorners'.", &tolua_err); #endif @@ -941,18 +941,18 @@ int lua_axis_3d_AABB_updateMinMax(lua_State* L) axis::AABB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.AABB", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_AABB_updateMinMax'", nullptr); @@ -977,7 +977,7 @@ int lua_axis_3d_AABB_updateMinMax(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AABB:updateMinMax", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_AABB_updateMinMax'.", &tolua_err); #endif @@ -990,18 +990,18 @@ int lua_axis_3d_AABB_containPoint(lua_State* L) axis::AABB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.AABB", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_AABB_containPoint'", nullptr); @@ -1024,7 +1024,7 @@ int lua_axis_3d_AABB_containPoint(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AABB:containPoint", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_AABB_containPoint'.", &tolua_err); #endif @@ -1036,7 +1036,7 @@ int lua_axis_3d_AABB_constructor(lua_State* L) int argc = 0; axis::AABB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif @@ -1080,7 +1080,7 @@ int lua_axis_3d_AABB_constructor(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AABB:AABB", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_error(L, "#ferror in function 'lua_axis_3d_AABB_constructor'.", &tolua_err); #endif @@ -1091,14 +1091,14 @@ int lua_axis_3d_get_AABB_min(lua_State* L) { axis::AABB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.AABB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::AABB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_get_AABB_min'\n", nullptr); @@ -1108,7 +1108,7 @@ int lua_axis_3d_get_AABB_min(lua_State* L) vec3_to_luaval(L, self->_min); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_get_AABB_min'.", &tolua_err); return 0; @@ -1120,14 +1120,14 @@ int lua_axis_3d_set_AABB_min(lua_State* L) int argc = 0; axis::AABB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.AABB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::AABB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_set_AABB_min'\n", nullptr); @@ -1139,7 +1139,7 @@ int lua_axis_3d_set_AABB_min(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -1149,7 +1149,7 @@ int lua_axis_3d_set_AABB_min(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_set_AABB_min'.", &tolua_err); return 0; @@ -1160,14 +1160,14 @@ int lua_axis_3d_get_AABB_max(lua_State* L) { axis::AABB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.AABB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::AABB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_get_AABB_max'\n", nullptr); @@ -1177,7 +1177,7 @@ int lua_axis_3d_get_AABB_max(lua_State* L) vec3_to_luaval(L, self->_max); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_get_AABB_max'.", &tolua_err); return 0; @@ -1189,14 +1189,14 @@ int lua_axis_3d_set_AABB_max(lua_State* L) int argc = 0; axis::AABB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.AABB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::AABB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_set_AABB_max'\n", nullptr); @@ -1208,7 +1208,7 @@ int lua_axis_3d_set_AABB_max(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -1218,7 +1218,7 @@ int lua_axis_3d_set_AABB_max(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_set_Ray_direction'.", &tolua_err); return 0; @@ -1262,18 +1262,18 @@ int lua_axis_3d_OBB_reset(lua_State* L) axis::OBB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_OBB_reset'", nullptr); @@ -1293,7 +1293,7 @@ int lua_axis_3d_OBB_reset(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.OBB:reset", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_OBB_reset'.", &tolua_err); #endif @@ -1306,18 +1306,18 @@ int lua_axis_3d_OBB_set(lua_State* L) axis::OBB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_OBB_set'", nullptr); @@ -1351,7 +1351,7 @@ int lua_axis_3d_OBB_set(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.OBB:set", argc, 5); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_OBB_set'.", &tolua_err); #endif @@ -1364,18 +1364,18 @@ int lua_axis_3d_OBB_transform(lua_State* L) axis::OBB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_OBB_transform'", nullptr); @@ -1397,7 +1397,7 @@ int lua_axis_3d_OBB_transform(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.OBB:transform", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_OBB_transform'.", &tolua_err); #endif @@ -1411,18 +1411,18 @@ int lua_axis_3d_OBB_containPoint(lua_State* L) axis::OBB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_OBB_containPoint'", nullptr); @@ -1445,7 +1445,7 @@ int lua_axis_3d_OBB_containPoint(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.OBB:containPoint", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_OBB_containPoint'.", &tolua_err); #endif @@ -1458,7 +1458,7 @@ int lua_axis_3d_OBB_constructor(lua_State* L) int argc = 0; axis::OBB* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif @@ -1520,7 +1520,7 @@ int lua_axis_3d_OBB_constructor(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.OBB:OBB", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_error(L, "#ferror in function 'lua_axis_3d_OBB_constructor'.", &tolua_err); #endif @@ -1532,14 +1532,14 @@ int lua_axis_3d_OBB_intersects(lua_State* L) int argc = 0; axis::OBB* self = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_OBB_intersects'\n", nullptr); @@ -1561,7 +1561,7 @@ int lua_axis_3d_OBB_intersects(lua_State* L) } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.OBB:intersects", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_OBB_intersects'.", &tolua_err); return 0; @@ -1572,14 +1572,14 @@ int lua_axis_3d_get_OBB_center(lua_State* L) { axis::OBB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_get_OBB_center'\n", nullptr); @@ -1589,7 +1589,7 @@ int lua_axis_3d_get_OBB_center(lua_State* L) vec3_to_luaval(L, self->_center); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_get_OBB_center'.", &tolua_err); return 0; @@ -1601,14 +1601,14 @@ int lua_axis_3d_set_OBB_center(lua_State* L) int argc = 0; axis::OBB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_set_OBB_center'\n", nullptr); @@ -1620,7 +1620,7 @@ int lua_axis_3d_set_OBB_center(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -1630,7 +1630,7 @@ int lua_axis_3d_set_OBB_center(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_set_OBB_center'.", &tolua_err); return 0; @@ -1641,14 +1641,14 @@ int lua_axis_3d_get_OBB_xAxis(lua_State* L) { axis::OBB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_get_OBB_xAxis'\n", nullptr); @@ -1658,7 +1658,7 @@ int lua_axis_3d_get_OBB_xAxis(lua_State* L) vec3_to_luaval(L, self->_xAxis); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_get_OBB_xAxis'.", &tolua_err); return 0; @@ -1670,14 +1670,14 @@ int lua_axis_3d_set_OBB_xAxis(lua_State* L) int argc = 0; axis::OBB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_set_OBB_xAxis'\n", nullptr); @@ -1689,7 +1689,7 @@ int lua_axis_3d_set_OBB_xAxis(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -1699,7 +1699,7 @@ int lua_axis_3d_set_OBB_xAxis(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_set_OBB_center'.", &tolua_err); return 0; @@ -1710,14 +1710,14 @@ int lua_axis_3d_get_OBB_yAxis(lua_State* L) { axis::OBB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_get_OBB_yAxis'\n", nullptr); @@ -1727,7 +1727,7 @@ int lua_axis_3d_get_OBB_yAxis(lua_State* L) vec3_to_luaval(L, self->_yAxis); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_get_OBB_yAxis'.", &tolua_err); return 0; @@ -1739,14 +1739,14 @@ int lua_axis_3d_set_OBB_yAxis(lua_State* L) int argc = 0; axis::OBB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_set_OBB_yAxis'\n", nullptr); @@ -1758,7 +1758,7 @@ int lua_axis_3d_set_OBB_yAxis(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -1768,7 +1768,7 @@ int lua_axis_3d_set_OBB_yAxis(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_set_OBB_yAxis'.", &tolua_err); return 0; @@ -1779,14 +1779,14 @@ int lua_axis_3d_get_OBB_zAxis(lua_State* L) { axis::OBB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_get_OBB_zAxis'\n", nullptr); @@ -1796,7 +1796,7 @@ int lua_axis_3d_get_OBB_zAxis(lua_State* L) vec3_to_luaval(L, self->_zAxis); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_get_OBB_zAxis'.", &tolua_err); return 0; @@ -1808,14 +1808,14 @@ int lua_axis_3d_set_OBB_zAxis(lua_State* L) int argc = 0; axis::OBB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_set_OBB_zAxis'\n", nullptr); @@ -1827,7 +1827,7 @@ int lua_axis_3d_set_OBB_zAxis(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -1837,7 +1837,7 @@ int lua_axis_3d_set_OBB_zAxis(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_set_OBB_zAxis'.", &tolua_err); return 0; @@ -1848,14 +1848,14 @@ int lua_axis_3d_get_OBB_extents(lua_State* L) { axis::OBB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_get_OBB_extents'\n", nullptr); @@ -1865,7 +1865,7 @@ int lua_axis_3d_get_OBB_extents(lua_State* L) vec3_to_luaval(L, self->_extents); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_get_OBB_extents'.", &tolua_err); return 0; @@ -1877,14 +1877,14 @@ int lua_axis_3d_set_OBB_extents(lua_State* L) int argc = 0; axis::OBB* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_set_OBB_extents'\n", nullptr); @@ -1896,7 +1896,7 @@ int lua_axis_3d_set_OBB_extents(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -1906,7 +1906,7 @@ int lua_axis_3d_set_OBB_extents(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_set_OBB_extents'.", &tolua_err); return 0; @@ -1918,18 +1918,18 @@ int lua_axis_3d_OBB_getCorners(lua_State* L) int argc = 0; axis::OBB* cobj = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.OBB", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::OBB*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_OBB_getCorners'", nullptr); @@ -1941,7 +1941,7 @@ int lua_axis_3d_OBB_getCorners(lua_State* L) if (argc == 1) { axis::Vec3* arg0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -1986,7 +1986,7 @@ int lua_axis_3d_OBB_getCorners(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.OBB:getCorners", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_OBB_getCorners'.", &tolua_err); #endif @@ -2032,18 +2032,18 @@ int lua_axis_3d_Ray_set(lua_State* L) axis::Ray* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.Ray", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Ray*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_Ray_set'", nullptr); @@ -2068,7 +2068,7 @@ int lua_axis_3d_Ray_set(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ray:set", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_Ray_set'.", &tolua_err); #endif @@ -2081,18 +2081,18 @@ int lua_axis_3d_Ray_transform(lua_State* L) axis::Ray* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.Ray", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Ray*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_3d_Ray_transform'", nullptr); @@ -2114,7 +2114,7 @@ int lua_axis_3d_Ray_transform(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ray:transform", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_Ray_transform'.", &tolua_err); #endif @@ -2127,14 +2127,14 @@ int lua_axis_3d_Ray_intersects(lua_State* L) int argc = 0; axis::Ray* self = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Ray", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::Ray*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_Ray_intersects'\n", nullptr); @@ -2158,7 +2158,7 @@ int lua_axis_3d_Ray_intersects(lua_State* L) } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ray:intersects", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_Ray_intersects'.", &tolua_err); return 0; @@ -2170,7 +2170,7 @@ int lua_axis_3d_Ray_constructor(lua_State* L) int argc = 0; axis::Ray* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif @@ -2214,7 +2214,7 @@ int lua_axis_3d_Ray_constructor(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Ray:Ray", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_error(L, "#ferror in function 'lua_axis_3d_Ray_constructor'.", &tolua_err); #endif @@ -2225,14 +2225,14 @@ int lua_axis_3d_get_Ray_origin(lua_State* L) { axis::Ray* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Ray", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::Ray*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_get_Ray_origin'\n", nullptr); @@ -2242,7 +2242,7 @@ int lua_axis_3d_get_Ray_origin(lua_State* L) vec3_to_luaval(L, self->_origin); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_get_Ray_origin'.", &tolua_err); return 0; @@ -2254,14 +2254,14 @@ int lua_axis_3d_set_Ray_origin(lua_State* L) int argc = 0; axis::Ray* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Ray", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::Ray*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_set_Ray_origin'\n", nullptr); @@ -2273,7 +2273,7 @@ int lua_axis_3d_set_Ray_origin(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -2283,7 +2283,7 @@ int lua_axis_3d_set_Ray_origin(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_set_Ray_origin'.", &tolua_err); return 0; @@ -2294,14 +2294,14 @@ int lua_axis_3d_get_Ray_direction(lua_State* L) { axis::Ray* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Ray", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::Ray*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_get_Ray_direction'\n", nullptr); @@ -2311,7 +2311,7 @@ int lua_axis_3d_get_Ray_direction(lua_State* L) vec3_to_luaval(L, self->_direction); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_get_Ray_direction'.", &tolua_err); return 0; @@ -2323,14 +2323,14 @@ int lua_axis_3d_set_Ray_direction(lua_State* L) int argc = 0; axis::Ray* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Ray", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::Ray*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_3d_set_Ray_direction'\n", nullptr); @@ -2342,7 +2342,7 @@ int lua_axis_3d_set_Ray_direction(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -2352,7 +2352,7 @@ int lua_axis_3d_set_Ray_direction(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_3d_set_Ray_direction'.", &tolua_err); return 0; diff --git a/extensions/scripting/lua-bindings/manual/CCLuaStack.cpp b/extensions/scripting/lua-bindings/manual/CCLuaStack.cpp index ffb92d4c90..85525c0d78 100644 --- a/extensions/scripting/lua-bindings/manual/CCLuaStack.cpp +++ b/extensions/scripting/lua-bindings/manual/CCLuaStack.cpp @@ -712,7 +712,7 @@ int LuaStack::luaLoadBuffer(lua_State* L, const char* chunk, int chunkSize, cons skipBOM(chunk, chunkSize); r = luaL_loadbuffer(L, chunk, chunkSize, chunkName); -#if defined(COCOS2D_DEBUG) && COCOS2D_DEBUG > 0 +#if defined(AXIS_DEBUG) && AXIS_DEBUG > 0 if (r) { switch (r) diff --git a/extensions/scripting/lua-bindings/manual/LuaBasicConversions.cpp b/extensions/scripting/lua-bindings/manual/LuaBasicConversions.cpp index d8f5abc7ce..dd86bb5cf1 100644 --- a/extensions/scripting/lua-bindings/manual/LuaBasicConversions.cpp +++ b/extensions/scripting/lua-bindings/manual/LuaBasicConversions.cpp @@ -32,7 +32,7 @@ std::unordered_map g_luaType; std::unordered_map g_typeCast; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 void luaval_to_native_err(lua_State* L, const char* msg, tolua_Error* err, const char* funcName) { if (NULL == L || NULL == err || NULL == msg || 0 == strlen(msg)) @@ -93,7 +93,7 @@ bool luaval_to_ushort(lua_State* L, int lo, unsigned short* outValue, const char tolua_Error tolua_err; if (!tolua_isnumber(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -117,7 +117,7 @@ bool luaval_to_float(lua_State* L, int lo, float* outValue, const char* funcName tolua_Error tolua_err; if (!tolua_isnumber(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -141,7 +141,7 @@ bool luaval_to_int32(lua_State* L, int lo, int* outValue, const char* funcName) tolua_Error tolua_err; if (!tolua_isnumber(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -181,7 +181,7 @@ bool luaval_to_uint32(lua_State* L, int lo, unsigned int* outValue, const char* tolua_Error tolua_err; if (!tolua_isnumber(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -205,7 +205,7 @@ bool luaval_to_uint16(lua_State* L, int lo, uint16_t* outValue, const char* func tolua_Error tolua_err; if (!tolua_isnumber(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -229,7 +229,7 @@ bool luaval_to_boolean(lua_State* L, int lo, bool* outValue, const char* funcNam tolua_Error tolua_err; if (!tolua_isboolean(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -253,7 +253,7 @@ bool luaval_to_number(lua_State* L, int lo, double* outValue, const char* funcNa tolua_Error tolua_err; if (!tolua_isnumber(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -277,7 +277,7 @@ bool luaval_to_long_long(lua_State* L, int lo, long long* outValue, const char* tolua_Error tolua_err; if (!tolua_isnumber(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -301,7 +301,7 @@ bool luaval_to_std_string(lua_State* L, int lo, std::string* outValue, const cha tolua_Error tolua_err; if (!tolua_iscppstring(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -327,7 +327,7 @@ bool luaval_to_std_string_view(lua_State* L, int lo, cxx17::string_view* outValu tolua_Error tolua_err; if (!tolua_iscppstring(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -353,7 +353,7 @@ bool luaval_to_vec2(lua_State* L, int lo, axis::Vec2* outValue, const char* func tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -402,7 +402,7 @@ bool luaval_to_vec3(lua_State* L, int lo, axis::Vec3* outValue, const char* func tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -438,7 +438,7 @@ bool luaval_to_vec4(lua_State* L, int lo, axis::Vec4* outValue, const char* func tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -479,7 +479,7 @@ bool luaval_to_blendfunc(lua_State* L, int lo, axis::BlendFunc* outValue, const tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -517,7 +517,7 @@ bool luaval_to_physics_material(lua_State* L, int lo, PhysicsMaterial* outValue, tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); # endif ok = false; @@ -554,7 +554,7 @@ bool luaval_to_ssize_t(lua_State* L, int lo, ssize_t* outValue, const char* func tolua_Error tolua_err; if (!tolua_isnumber(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -578,7 +578,7 @@ bool luaval_to_size_t(lua_State* L, int lo, size_t* outValue, const char* funcNa tolua_Error tolua_err; if (!tolua_isnumber(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -602,7 +602,7 @@ bool luaval_to_size(lua_State* L, int lo, Size* outValue, const char* funcName) tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -634,7 +634,7 @@ bool luaval_to_rect(lua_State* L, int lo, Rect* outValue, const char* funcName) tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -676,7 +676,7 @@ bool luaval_to_color4b(lua_State* L, int lo, Color4B* outValue, const char* func tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -718,7 +718,7 @@ bool luaval_to_color4f(lua_State* L, int lo, Color4F* outValue, const char* func tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -760,7 +760,7 @@ bool luaval_to_color3b(lua_State* L, int lo, Color3B* outValue, const char* func tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -797,7 +797,7 @@ bool luaval_to_affinetransform(lua_State* L, int lo, AffineTransform* outValue, tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1003,7 +1003,7 @@ bool luaval_to_fontdefinition(lua_State* L, int lo, FontDefinition* outValue, co } lua_pop(L, 1); } -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 else { luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); @@ -1023,7 +1023,7 @@ bool luaval_to_ttfconfig(lua_State* L, int lo, axis::TTFConfig* outValue, const tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1078,7 +1078,7 @@ bool luaval_to_mat4(lua_State* L, int lo, axis::Mat4* outValue, const char* func tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); ok = false; #endif @@ -1125,7 +1125,7 @@ bool luaval_to_array_of_vec2(lua_State* L, int lo, axis::Vec2** points, int* num if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1145,7 +1145,7 @@ bool luaval_to_array_of_vec2(lua_State* L, int lo, axis::Vec2** points, int* num lua_gettable(L, lo); if (!tolua_istable(L, -1, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif lua_pop(L, 1); @@ -1293,7 +1293,7 @@ bool luaval_to_ccvaluemap(lua_State* L, int lo, axis::ValueMap* ret, const char* bool ok = true; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1380,7 +1380,7 @@ bool luaval_to_ccvaluemapintkey(lua_State* L, int lo, axis::ValueMapIntKey* ret, bool ok = true; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1468,7 +1468,7 @@ bool luaval_to_ccvaluevector(lua_State* L, int lo, axis::ValueVector* ret, const bool ok = true; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1550,7 +1550,7 @@ bool luaval_to_std_vector_string(lua_State* L, int lo, std::vector* bool ok = true; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1591,7 +1591,7 @@ bool luaval_to_std_vector_string_view(lua_State* L, int lo, std::vector= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1632,7 +1632,7 @@ bool luaval_to_std_vector_int(lua_State* L, int lo, std::vector* ret, const bool ok = true; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1671,7 +1671,7 @@ bool luaval_to_mesh_vertex_attrib(lua_State* L, int lo, axis::MeshVertexAttrib* if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1704,7 +1704,7 @@ bool luaval_to_std_vector_float(lua_State* L, int lo, std::vector* ret, c if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1743,7 +1743,7 @@ bool luaval_to_std_vector_ushort(lua_State* L, int lo, std::vector= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1782,7 +1782,7 @@ bool luaval_to_quaternion(lua_State* L, int lo, axis::Quaternion* outValue, cons tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1823,7 +1823,7 @@ bool luaval_to_texparams(lua_State* L, int lo, axis::Texture2D::TexParams* outVa tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1864,7 +1864,7 @@ bool luaval_to_tex2f(lua_State* L, int lo, axis::Tex2F* outValue, const char* fu tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1895,7 +1895,7 @@ bool luaval_to_v3f_c4b_t2f(lua_State* L, int lo, axis::V3F_C4B_T2F* outValue, co tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -1962,7 +1962,7 @@ bool luaval_to_std_vector_vec2(lua_State* L, int lo, std::vector* re if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -2005,7 +2005,7 @@ bool luaval_to_std_vector_vec3(lua_State* L, int lo, std::vector* re if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -2051,7 +2051,7 @@ bool luaval_to_std_vector_v3f_c4b_t2f(lua_State* L, if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; @@ -2984,7 +2984,7 @@ bool luaval_to_std_map_string_string(lua_State* L, int lo, hlookup::string_map= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; diff --git a/extensions/scripting/lua-bindings/manual/LuaBasicConversions.h b/extensions/scripting/lua-bindings/manual/LuaBasicConversions.h index 215c127a1d..f1c0103491 100644 --- a/extensions/scripting/lua-bindings/manual/LuaBasicConversions.h +++ b/extensions/scripting/lua-bindings/manual/LuaBasicConversions.h @@ -52,7 +52,7 @@ USING_NS_AX; extern std::unordered_map g_luaType; extern std::unordered_map g_typeCast; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 void luaval_to_native_err(lua_State* L, const char* msg, tolua_Error* err, const char* funcName = ""); #endif @@ -626,7 +626,7 @@ bool luaval_to_ccmap_string_key(lua_State* L, int lo, axis::Map* bool ok = true; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err); #endif ok = false; diff --git a/extensions/scripting/lua-bindings/manual/audioengine/lua_axis_audioengine_manual.cpp b/extensions/scripting/lua-bindings/manual/audioengine/lua_axis_audioengine_manual.cpp index 39a08b7638..af270f3bf2 100644 --- a/extensions/scripting/lua-bindings/manual/audioengine/lua_axis_audioengine_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/audioengine/lua_axis_audioengine_manual.cpp @@ -33,14 +33,14 @@ static int lua_get_AudioProfile_name(lua_State* L) { axis::AudioProfile* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.AudioProfile", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_get_AudioProfile_name'\n", nullptr); @@ -51,7 +51,7 @@ static int lua_get_AudioProfile_name(lua_State* L) lua_pushstring(L, self->name.c_str()); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_get_AudioProfile_name'.", &tolua_err); return 0; @@ -63,14 +63,14 @@ static int lua_set_AudioProfile_name(lua_State* L) int argc = 0; axis::AudioProfile* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.AudioProfile", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_set_AudioProfile_name'\n", nullptr); @@ -82,7 +82,7 @@ static int lua_set_AudioProfile_name(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -92,7 +92,7 @@ static int lua_set_AudioProfile_name(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_set_AudioProfile_name'.", &tolua_err); return 0; @@ -103,14 +103,14 @@ static int lua_get_AudioProfile_maxInstances(lua_State* L) { axis::AudioProfile* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.AudioProfile", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_get_AudioProfile_maxInstances'\n", nullptr); @@ -121,7 +121,7 @@ static int lua_get_AudioProfile_maxInstances(lua_State* L) tolua_pushnumber(L, (lua_Number)self->maxInstances); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_get_AudioProfile_maxInstances'.", &tolua_err); return 0; @@ -133,14 +133,14 @@ static int lua_set_AudioProfile_maxInstances(lua_State* L) int argc = 0; axis::AudioProfile* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.AudioProfile", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_set_AudioProfile_maxInstances'\n", nullptr); @@ -152,7 +152,7 @@ static int lua_set_AudioProfile_maxInstances(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -162,7 +162,7 @@ static int lua_set_AudioProfile_maxInstances(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_set_AudioProfile_maxInstances'.", &tolua_err); return 0; @@ -173,14 +173,14 @@ static int lua_get_AudioProfile_minDelay(lua_State* L) { axis::AudioProfile* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.AudioProfile", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_get_AudioProfile_minDelay'\n", nullptr); @@ -191,7 +191,7 @@ static int lua_get_AudioProfile_minDelay(lua_State* L) tolua_pushnumber(L, (lua_Number)self->minDelay); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_get_AudioProfile_minDelay'.", &tolua_err); return 0; @@ -203,14 +203,14 @@ static int lua_set_AudioProfile_minDelay(lua_State* L) int argc = 0; axis::AudioProfile* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.AudioProfile", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_set_AudioProfile_minDelay'\n", nullptr); @@ -222,7 +222,7 @@ static int lua_set_AudioProfile_minDelay(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -232,7 +232,7 @@ static int lua_set_AudioProfile_minDelay(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_set_AudioProfile_minDelay'.", &tolua_err); return 0; @@ -244,11 +244,11 @@ int lua_axis_audioengine_AudioEngine_setFinishCallback(lua_State* tolua_S) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.AudioEngine", 0, &tolua_err)) goto tolua_lerror; #endif @@ -260,7 +260,7 @@ int lua_axis_audioengine_AudioEngine_setFinishCallback(lua_State* tolua_S) int arg0; ok &= luaval_to_int32(tolua_S, 2, (int*)&arg0, "ax.AudioEngine:setFinishCallback"); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 3, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -285,7 +285,7 @@ int lua_axis_audioengine_AudioEngine_setFinishCallback(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AudioEngine:setFinishCallback", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_audioengine_AudioEngine_setFinishCallback'.", &tolua_err); #endif diff --git a/extensions/scripting/lua-bindings/manual/base/lua_axis_base_manual.cpp b/extensions/scripting/lua-bindings/manual/base/lua_axis_base_manual.cpp index 25a75e9e20..6dda849be1 100644 --- a/extensions/scripting/lua-bindings/manual/base/lua_axis_base_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/base/lua_axis_base_manual.cpp @@ -211,7 +211,7 @@ static int tolua_cocos2d_MenuItemImage_create(lua_State* tolua_S) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.MenuItemImage", 0, &tolua_err)) goto tolua_lerror; @@ -234,7 +234,7 @@ static int tolua_cocos2d_MenuItemImage_create(lua_State* tolua_S) { if (argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(tolua_S, 2, 0, &tolua_err) || !tolua_isstring(tolua_S, 3, 0, &tolua_err)) { ok = false; @@ -258,7 +258,7 @@ static int tolua_cocos2d_MenuItemImage_create(lua_State* tolua_S) { if (argc == 3) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(tolua_S, 2, 0, &tolua_err) || !tolua_isstring(tolua_S, 3, 0, &tolua_err) || !tolua_isstring(tolua_S, 4, 0, &tolua_err)) { @@ -281,7 +281,7 @@ static int tolua_cocos2d_MenuItemImage_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.MenuItemImage:create", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_MenuItemImage_create'.\n", &tolua_err); #endif @@ -295,7 +295,7 @@ static int tolua_cocos2d_MenuItemLabel_create(lua_State* tolua_S) int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.MenuItemLabel", 0, &tolua_err)) goto tolua_lerror; @@ -305,7 +305,7 @@ static int tolua_cocos2d_MenuItemLabel_create(lua_State* tolua_S) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 2, "ax.Node", 0, &tolua_err)) { goto tolua_lerror; @@ -322,7 +322,7 @@ static int tolua_cocos2d_MenuItemLabel_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.MenuItemLabel:create", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_MenuItemImage_create'.", &tolua_err); return 0; @@ -336,7 +336,7 @@ static int tolua_cocos2d_MenuItemFont_create(lua_State* tolua_S) int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.MenuItemFont", 0, &tolua_err)) goto tolua_lerror; @@ -346,7 +346,7 @@ static int tolua_cocos2d_MenuItemFont_create(lua_State* tolua_S) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(tolua_S, 2, 0, &tolua_err)) { goto tolua_lerror; @@ -363,7 +363,7 @@ static int tolua_cocos2d_MenuItemFont_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.MenuItemFont:create", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_MenuItemImage_create'.", &tolua_err); return 0; @@ -377,7 +377,7 @@ static int tolua_cocos2d_MenuItemSprite_create(lua_State* tolua_S) int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.MenuItemSprite", 0, &tolua_err)) goto tolua_lerror; @@ -388,7 +388,7 @@ static int tolua_cocos2d_MenuItemSprite_create(lua_State* tolua_S) if (argc >= 2 && argc <= 3) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 2, "ax.Node", 0, &tolua_err) || !tolua_isusertype(tolua_S, 3, "ax.Node", 0, &tolua_err)) { @@ -420,7 +420,7 @@ static int tolua_cocos2d_MenuItemSprite_create(lua_State* tolua_S) 3); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_MenuItemImage_create'.", &tolua_err); return 0; @@ -434,7 +434,7 @@ static int tolua_cocos2d_Menu_create(lua_State* tolua_S) int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.Menu", 0, &tolua_err)) goto tolua_lerror; @@ -447,7 +447,7 @@ static int tolua_cocos2d_Menu_create(lua_State* tolua_S) int i = 1; while (i <= argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1 + i, "ax.MenuItem", 0, &tolua_err)) goto tolua_lerror; #endif @@ -478,7 +478,7 @@ static int tolua_cocos2d_Menu_create(lua_State* tolua_S) luaL_error(tolua_S, "create wrong number of arguments: %d, was expecting %d\n", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Menu_create'.\n", &tolua_err); #endif @@ -493,14 +493,14 @@ static int tolua_axis_Menu_alignItemsInRows(lua_State* tolua_S) int argc = 0; Menu* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Menu", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_Menu_alignItemsInRows'\n", nullptr); @@ -525,7 +525,7 @@ static int tolua_axis_Menu_alignItemsInRows(lua_State* tolua_S) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'alignItemsInRows'.\n", &tolua_err); #endif @@ -541,14 +541,14 @@ static int tolua_axis_Menu_alignItemsInColumns(lua_State* tolua_S) int argc = 0; Menu* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Menu", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_axis_Menu_alignItemsInColumns'\n", nullptr); @@ -573,7 +573,7 @@ static int tolua_axis_Menu_alignItemsInColumns(lua_State* tolua_S) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_Menu_alignItemsInColumns'.\n", &tolua_err); #endif @@ -587,7 +587,7 @@ static int tolua_cocos2d_MenuItemToggle_create(lua_State* tolua_S) int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.MenuItemToggle", 0, &tolua_err)) goto tolua_lerror; @@ -604,7 +604,7 @@ static int tolua_cocos2d_MenuItemToggle_create(lua_State* tolua_S) for (int i = 0; i < argc; ++i) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, i + 2, "ax.MenuItem", 0, &tolua_err)) { goto tolua_lerror; @@ -625,7 +625,7 @@ static int tolua_cocos2d_MenuItemToggle_create(lua_State* tolua_S) 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_MenuItemToggle_create'.", &tolua_err); return 0; @@ -639,13 +639,13 @@ static int tolua_cocos2d_MenuItem_registerScriptTapHandler(lua_State* tolua_S) int argc = 0; MenuItem* cobj = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.MenuItem", 0, &tolua_err)) goto tolua_lerror; #endif cobj = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'tolua_cocos2d_MenuItem_registerScriptTapHandler'\n", NULL); @@ -655,7 +655,7 @@ static int tolua_cocos2d_MenuItem_registerScriptTapHandler(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -671,7 +671,7 @@ static int tolua_cocos2d_MenuItem_registerScriptTapHandler(lua_State* tolua_S) "ax.MenuItem:registerScriptTapHandler", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_MenuItem_registerScriptTapHandler'.", &tolua_err); return 0; @@ -686,7 +686,7 @@ static int tolua_cocos2d_MenuItem_unregisterScriptTapHandler(lua_State* tolua_S) int argc = 0; MenuItem* cobj = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.MenuItem", 0, &tolua_err)) goto tolua_lerror; @@ -694,7 +694,7 @@ static int tolua_cocos2d_MenuItem_unregisterScriptTapHandler(lua_State* tolua_S) cobj = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'tolua_cocos2d_MenuItem_unregisterScriptTapHandler'\n", NULL); @@ -714,7 +714,7 @@ static int tolua_cocos2d_MenuItem_unregisterScriptTapHandler(lua_State* tolua_S) "ax.MenuItem:unregisterScriptTapHandler", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_MenuItem_unregisterScriptTapHandler'.", &tolua_err); return 0; @@ -760,7 +760,7 @@ static int lua_axis_Layer_setTouchEnabled(lua_State* L) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -768,7 +768,7 @@ static int lua_axis_Layer_setTouchEnabled(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Layer_setTouchEnabled'\n", NULL); @@ -780,7 +780,7 @@ static int lua_axis_Layer_setTouchEnabled(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isboolean(L, 2, 0, &tolua_err)) { goto tolua_lerror; @@ -793,7 +793,7 @@ static int lua_axis_Layer_setTouchEnabled(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.Layer:setTouchEnabled", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_Layer_setTouchEnabled'.", &tolua_err); return 0; @@ -808,7 +808,7 @@ static int lua_axis_Layer_isTouchEnabled(lua_State* L) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -816,7 +816,7 @@ static int lua_axis_Layer_isTouchEnabled(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Layer_isTouchEnabled'\n", NULL); @@ -834,7 +834,7 @@ static int lua_axis_Layer_isTouchEnabled(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.Layer:isTouchEnabled", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_Layer_isTouchEnabled'.", &tolua_err); return 0; @@ -849,7 +849,7 @@ static int lua_axis_Layer_setTouchMode(lua_State* L) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -857,7 +857,7 @@ static int lua_axis_Layer_setTouchMode(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Layer_setTouchMode'\n", NULL); @@ -869,7 +869,7 @@ static int lua_axis_Layer_setTouchMode(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(L, 2, 0, &tolua_err)) { goto tolua_lerror; @@ -883,7 +883,7 @@ static int lua_axis_Layer_setTouchMode(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.Layer:setTouchMode", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_Layer_setTouchMode'.", &tolua_err); return 0; @@ -898,7 +898,7 @@ static int lua_axis_Layer_getTouchMode(lua_State* L) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -906,7 +906,7 @@ static int lua_axis_Layer_getTouchMode(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Layer_getTouchMode'\n", NULL); @@ -926,7 +926,7 @@ static int lua_axis_Layer_getTouchMode(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.Layer:getTouchMode", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_Layer_getTouchMode'.", &tolua_err); return 0; @@ -941,7 +941,7 @@ static int lua_axis_Layer_setSwallowsTouches(lua_State* L) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -949,7 +949,7 @@ static int lua_axis_Layer_setSwallowsTouches(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Layer_setSwallowsTouches'\n", NULL); @@ -960,7 +960,7 @@ static int lua_axis_Layer_setSwallowsTouches(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isboolean(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -974,7 +974,7 @@ static int lua_axis_Layer_setSwallowsTouches(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.Layer:setSwallowsTouches", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_Layer_setSwallowsTouches'.", &tolua_err); return 0; @@ -989,7 +989,7 @@ static int lua_axis_Layer_isSwallowsTouches(lua_State* L) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -997,7 +997,7 @@ static int lua_axis_Layer_isSwallowsTouches(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Layer_isSwallowsTouches'\n", NULL); @@ -1015,7 +1015,7 @@ static int lua_axis_Layer_isSwallowsTouches(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.Layer:isSwallowsTouches", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_Layer_isSwallowsTouches'.", &tolua_err); return 0; @@ -1030,7 +1030,7 @@ static int lua_axis_Layer_setKeyboardEnabled(lua_State* L) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -1038,7 +1038,7 @@ static int lua_axis_Layer_setKeyboardEnabled(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Layer_setKeyboardEnabled'\n", NULL); @@ -1049,7 +1049,7 @@ static int lua_axis_Layer_setKeyboardEnabled(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isboolean(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -1061,7 +1061,7 @@ static int lua_axis_Layer_setKeyboardEnabled(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.Layer:setKeyboardEnabled", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_Layer_setKeyboardEnabled'.", &tolua_err); return 0; @@ -1076,7 +1076,7 @@ static int lua_axis_Layer_isKeyboardEnabled(lua_State* L) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -1084,7 +1084,7 @@ static int lua_axis_Layer_isKeyboardEnabled(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Layer_isKeyboardEnabled'\n", NULL); @@ -1102,7 +1102,7 @@ static int lua_axis_Layer_isKeyboardEnabled(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.Layer:isKeyboardEnabled", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_Layer_isKeyboardEnabled'.", &tolua_err); return 0; @@ -1117,7 +1117,7 @@ static int lua_axis_Layer_setAccelerometerEnabled(lua_State* L) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -1125,7 +1125,7 @@ static int lua_axis_Layer_setAccelerometerEnabled(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Layer_setAccelerometerEnabled'\n", NULL); @@ -1136,7 +1136,7 @@ static int lua_axis_Layer_setAccelerometerEnabled(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isboolean(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -1149,7 +1149,7 @@ static int lua_axis_Layer_setAccelerometerEnabled(lua_State* L) 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_Layer_setAccelerometerEnabled'.", &tolua_err); return 0; @@ -1164,7 +1164,7 @@ static int lua_axis_Layer_isAccelerometerEnabled(lua_State* L) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -1172,7 +1172,7 @@ static int lua_axis_Layer_isAccelerometerEnabled(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Layer_isAccelerometerEnabled'\n", NULL); @@ -1191,7 +1191,7 @@ static int lua_axis_Layer_isAccelerometerEnabled(lua_State* L) 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_Layer_isAccelerometerEnabled'.", &tolua_err); return 0; @@ -1206,7 +1206,7 @@ static int lua_axis_Layer_setAccelerometerInterval(lua_State* L) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -1214,7 +1214,7 @@ static int lua_axis_Layer_setAccelerometerInterval(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Layer_setAccelerometerInterval'\n", NULL); @@ -1225,7 +1225,7 @@ static int lua_axis_Layer_setAccelerometerInterval(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -1238,7 +1238,7 @@ static int lua_axis_Layer_setAccelerometerInterval(lua_State* L) 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_Layer_setAccelerometerInterval'.", &tolua_err); return 0; @@ -1253,7 +1253,7 @@ static int tolua_cocos2d_Layer_registerScriptTouchHandler(lua_State* tolua_S) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -1261,7 +1261,7 @@ static int tolua_cocos2d_Layer_registerScriptTouchHandler(lua_State* tolua_S) self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_cocos2d_Layer_registerScriptTouchHandler'\n", NULL); @@ -1273,7 +1273,7 @@ static int tolua_cocos2d_Layer_registerScriptTouchHandler(lua_State* tolua_S) if (argc >= 1 && argc <= 4) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -1286,7 +1286,7 @@ static int tolua_cocos2d_Layer_registerScriptTouchHandler(lua_State* tolua_S) if (argc >= 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isboolean(tolua_S, 3, 0, &tolua_err)) { goto tolua_lerror; @@ -1297,7 +1297,7 @@ static int tolua_cocos2d_Layer_registerScriptTouchHandler(lua_State* tolua_S) if (argc >= 3) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(tolua_S, 4, 0, &tolua_err)) { goto tolua_lerror; @@ -1308,7 +1308,7 @@ static int tolua_cocos2d_Layer_registerScriptTouchHandler(lua_State* tolua_S) if (argc == 4) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isboolean(tolua_S, 5, 0, &tolua_err)) { goto tolua_lerror; @@ -1331,7 +1331,7 @@ static int tolua_cocos2d_Layer_registerScriptTouchHandler(lua_State* tolua_S) "ax.Layer:registerScriptTouchHandler", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Layer_registerScriptTouchHandler'.", &tolua_err); return 0; @@ -1346,7 +1346,7 @@ static int tolua_cocos2d_Layer_unregisterScriptTouchHandler(lua_State* tolua_S) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -1354,7 +1354,7 @@ static int tolua_cocos2d_Layer_unregisterScriptTouchHandler(lua_State* tolua_S) self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_cocos2d_Layer_unregisterScriptTouchHandler'\n", NULL); @@ -1375,7 +1375,7 @@ static int tolua_cocos2d_Layer_unregisterScriptTouchHandler(lua_State* tolua_S) "ax.Layer:unregisterScriptTouchHandler", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Layer_unregisterScriptTouchHandler'.", &tolua_err); return 0; @@ -1390,7 +1390,7 @@ static int tolua_cocos2d_Layer_registerScriptKeypadHandler(lua_State* tolua_S) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -1398,7 +1398,7 @@ static int tolua_cocos2d_Layer_registerScriptKeypadHandler(lua_State* tolua_S) self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_cocos2d_Layer_registerScriptKeypadHandler'\n", NULL); @@ -1410,7 +1410,7 @@ static int tolua_cocos2d_Layer_registerScriptKeypadHandler(lua_State* tolua_S) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -1425,7 +1425,7 @@ static int tolua_cocos2d_Layer_registerScriptKeypadHandler(lua_State* tolua_S) "ax.Layer:registerScriptKeypadHandler", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Layer_registerScriptKeypadHandler'.", &tolua_err); return 0; @@ -1440,7 +1440,7 @@ static int tolua_cocos2d_Layer_unregisterScriptKeypadHandler(lua_State* tolua_S) int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -1448,7 +1448,7 @@ static int tolua_cocos2d_Layer_unregisterScriptKeypadHandler(lua_State* tolua_S) self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_cocos2d_Layer_unregisterScriptKeypadHandler'\n", NULL); @@ -1469,7 +1469,7 @@ static int tolua_cocos2d_Layer_unregisterScriptKeypadHandler(lua_State* tolua_S) "ax.Layer:unregisterScriptKeypadHandler", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Layer_unregisterScriptKeypadHandler'.", &tolua_err); return 0; @@ -1484,7 +1484,7 @@ static int tolua_cocos2d_Layer_registerScriptAccelerateHandler(lua_State* tolua_ int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -1492,7 +1492,7 @@ static int tolua_cocos2d_Layer_registerScriptAccelerateHandler(lua_State* tolua_ self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_cocos2d_Layer_registerScriptAccelerateHandler'\n", @@ -1505,7 +1505,7 @@ static int tolua_cocos2d_Layer_registerScriptAccelerateHandler(lua_State* tolua_ if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -1520,7 +1520,7 @@ static int tolua_cocos2d_Layer_registerScriptAccelerateHandler(lua_State* tolua_ luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.Layer:registerScriptAccelerateHandler", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Layer_registerScriptAccelerateHandler'.", &tolua_err); return 0; @@ -1535,7 +1535,7 @@ static int tolua_cocos2d_Layer_unregisterScriptAccelerateHandler(lua_State* tolu int argc = 0; Layer* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Layer", 0, &tolua_err)) goto tolua_lerror; @@ -1543,7 +1543,7 @@ static int tolua_cocos2d_Layer_unregisterScriptAccelerateHandler(lua_State* tolu self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_cocos2d_Layer_unregisterScriptAccelerateHandler'\n", @@ -1566,7 +1566,7 @@ static int tolua_cocos2d_Layer_unregisterScriptAccelerateHandler(lua_State* tolu "ax.Layer:unregisterScriptAccelerateHandler", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Layer_unregisterScriptAccelerateHandler'.", &tolua_err); return 0; @@ -1581,7 +1581,7 @@ static int tolua_cocos2d_Scheduler_scheduleScriptFunc(lua_State* tolua_S) int argc = 0; Scheduler* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Scheduler", 0, &tolua_err)) goto tolua_lerror; @@ -1589,7 +1589,7 @@ static int tolua_cocos2d_Scheduler_scheduleScriptFunc(lua_State* tolua_S) self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_cocos2d_Scheduler_scheduleScriptFunc'\n", NULL); @@ -1600,7 +1600,7 @@ static int tolua_cocos2d_Scheduler_scheduleScriptFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (3 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err) || !tolua_isnumber(tolua_S, 3, 0, &tolua_err) || !tolua_isboolean(tolua_S, 4, 0, &tolua_err)) { @@ -1619,7 +1619,7 @@ static int tolua_cocos2d_Scheduler_scheduleScriptFunc(lua_State* tolua_S) argc, 3); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Scheduler_scheduleScriptFunc'.", &tolua_err); return 0; @@ -1634,7 +1634,7 @@ static int tolua_cocos2d_Scheduler_unscheduleScriptEntry(lua_State* tolua_S) int argc = 0; Scheduler* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Scheduler", 0, &tolua_err)) goto tolua_lerror; @@ -1642,7 +1642,7 @@ static int tolua_cocos2d_Scheduler_unscheduleScriptEntry(lua_State* tolua_S) self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_cocos2d_Scheduler_unscheduleScriptEntry'\n", NULL); @@ -1653,7 +1653,7 @@ static int tolua_cocos2d_Scheduler_unscheduleScriptEntry(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(tolua_S, 2, 0, &tolua_err)) { goto tolua_lerror; @@ -1669,7 +1669,7 @@ static int tolua_cocos2d_Scheduler_unscheduleScriptEntry(lua_State* tolua_S) "ax.Scheduler:unscheduleScriptEntry", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Scheduler_unscheduleScriptEntry'.", &tolua_err); return 0; @@ -1682,18 +1682,18 @@ static int tolua_cocos2d_RenderTexture_newImage(lua_State* tolua_S) axis::RenderTexture* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.RenderTexture", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'tolua_cocos2d_RenderTexture_newImage'", nullptr); @@ -1704,7 +1704,7 @@ static int tolua_cocos2d_RenderTexture_newImage(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 1 || argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 ok &= toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err); if (!ok) { @@ -1736,7 +1736,7 @@ static int tolua_cocos2d_RenderTexture_newImage(lua_State* tolua_S) 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_RenderTexture_newImage'.", &tolua_err); #endif @@ -1753,7 +1753,7 @@ int tolua_cocos2d_Sequence_create(lua_State* tolua_S) tolua_Error tolua_err; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.Sequence", 0, &tolua_err)) goto tolua_lerror; #endif @@ -1772,7 +1772,7 @@ int tolua_cocos2d_Sequence_create(lua_State* tolua_S) int i = 1; while (i <= argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1 + i, "ax.FiniteTimeAction", 0, &tolua_err)) goto tolua_lerror; #endif @@ -1797,7 +1797,7 @@ int tolua_cocos2d_Sequence_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.Sequence:create", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Sequence_create'.", &tolua_err); return 0; @@ -1811,7 +1811,7 @@ static int tolua_cocos2d_CallFunc_create(lua_State* tolua_S) int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.CallFunc", 0, &tolua_err)) goto tolua_lerror; @@ -1821,7 +1821,7 @@ static int tolua_cocos2d_CallFunc_create(lua_State* tolua_S) if (argc == 1 || argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err)) goto tolua_lerror; #endif @@ -1832,7 +1832,7 @@ static int tolua_cocos2d_CallFunc_create(lua_State* tolua_S) int ref = 0; if (argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 3, 0, &tolua_err)) goto tolua_lerror; #endif @@ -1891,7 +1891,7 @@ static int tolua_cocos2d_CallFunc_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.CallFunc:create", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_CallFunc_create'.", &tolua_err); return 0; @@ -1906,14 +1906,14 @@ static int tolua_cocos2d_Node_registerScriptHandler(lua_State* tolua_S) int argc = 0; Node* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Node", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_cocos2d_Node_registerScriptHandler'\n", NULL); @@ -1925,7 +1925,7 @@ static int tolua_cocos2d_Node_registerScriptHandler(lua_State* tolua_S) if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err)) goto tolua_lerror; #endif @@ -1940,7 +1940,7 @@ static int tolua_cocos2d_Node_registerScriptHandler(lua_State* tolua_S) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Node_registerScriptHandler'.", &tolua_err); return 0; @@ -1955,14 +1955,14 @@ static int tolua_cocos2d_Node_unregisterScriptHandler(lua_State* tolua_S) int argc = 0; Node* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Node", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_cocos2d_Node_unregisterScriptHandler'\n", NULL); @@ -1982,7 +1982,7 @@ static int tolua_cocos2d_Node_unregisterScriptHandler(lua_State* tolua_S) argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Node_unregisterScriptHandler'.", &tolua_err); return 0; @@ -1997,14 +1997,14 @@ static int tolua_Cocos2d_Node_scheduleUpdateWithPriorityLua(lua_State* tolua_S) int argc = 0; Node* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Node", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_Cocos2d_Node_scheduleUpdateWithPriorityLua'\n", NULL); @@ -2016,7 +2016,7 @@ static int tolua_Cocos2d_Node_scheduleUpdateWithPriorityLua(lua_State* tolua_S) if (argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err)) goto tolua_lerror; #endif @@ -2034,7 +2034,7 @@ static int tolua_Cocos2d_Node_scheduleUpdateWithPriorityLua(lua_State* tolua_S) "ax.Node:scheduleUpdateWithPriorityLua", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_Cocos2d_Node_scheduleUpdateWithPriorityLua'.", &tolua_err); return 0; @@ -2049,14 +2049,14 @@ static int tolua_cocos2d_Node_unscheduleUpdate(lua_State* tolua_S) int argc = 0; Node* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Node", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_cocos2d_Node_unscheduleUpdate'\n", NULL); @@ -2076,7 +2076,7 @@ static int tolua_cocos2d_Node_unscheduleUpdate(lua_State* tolua_S) 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Node_unscheduleUpdate'.", &tolua_err); return 0; @@ -2088,15 +2088,15 @@ int tolua_cocos2d_Node_setContentSize(lua_State* tolua_S) int argc = 0; axis::Node* cobj = NULL; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Node", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Node*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Node_setContentSize'", NULL); @@ -2137,7 +2137,7 @@ int tolua_cocos2d_Node_setContentSize(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setContentSize", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Node_setContentSize'.", &tolua_err); #endif @@ -2149,15 +2149,15 @@ int tolua_cocos2d_Node_setAnchorPoint(lua_State* tolua_S) int argc = 0; axis::Node* cobj = NULL; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Node", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Node*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Node_setAnchorPoint'", NULL); @@ -2198,7 +2198,7 @@ int tolua_cocos2d_Node_setAnchorPoint(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Node:setAnchorPoint", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Node_setAnchorPoint'.", &tolua_err); #endif @@ -2213,14 +2213,14 @@ static int tolua_cocos2d_Node_getPosition(lua_State* tolua_S) int argc = 0; Node* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Node", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_cocos2d_Node_getPosition'\n", NULL); @@ -2232,7 +2232,7 @@ static int tolua_cocos2d_Node_getPosition(lua_State* tolua_S) if (argc >= 0 && argc <= 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(tolua_S, 2, 1, &tolua_err) || !tolua_isnumber(tolua_S, 3, 1, &tolua_err)) goto tolua_lerror; #endif @@ -2251,7 +2251,7 @@ static int tolua_cocos2d_Node_getPosition(lua_State* tolua_S) "ax.Node:getPosition", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Node_getPosition'.", &tolua_err); return 0; @@ -2263,18 +2263,18 @@ static int lua_axis_Node_enumerateChildren(lua_State* tolua_S) int argc = 0; axis::Node* cobj = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Node", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Node*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Node_enumerateChildren'", nullptr); @@ -2285,7 +2285,7 @@ static int lua_axis_Node_enumerateChildren(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(tolua_S, 2, 0, &tolua_err) || !toluafix_isfunction(tolua_S, 3, "LUA_FUNCTION", 0, &tolua_err)) { @@ -2312,7 +2312,7 @@ static int lua_axis_Node_enumerateChildren(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "enumerateChildren", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Node_enumerateChildren'.", &tolua_err); #endif @@ -2325,16 +2325,16 @@ int lua_axis_Node_setAdditionalTransform(lua_State* tolua_S) int argc = 0; axis::Node* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Node", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Node*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Node_setAdditionalTransform'", nullptr); @@ -2380,7 +2380,7 @@ int lua_axis_Node_setAdditionalTransform(lua_State* tolua_S) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Node_setAdditionalTransform'.", &tolua_err); #endif @@ -2393,16 +2393,16 @@ int lua_axis_Node_setRotationQuat(lua_State* tolua_S) int argc = 0; axis::Node* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Node", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Node*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Node_setRotationQuat'", nullptr); @@ -2431,7 +2431,7 @@ int lua_axis_Node_setRotationQuat(lua_State* tolua_S) 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Node_setRotationQuat'.", &tolua_err); #endif @@ -2447,18 +2447,18 @@ int lua_axis_Scene_setNavMeshDebugCamera(lua_State* tolua_S) axis::Scene* cobj = nullptr; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Scene", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::Scene*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Scene_setNavMeshDebugCamera'", nullptr); @@ -2485,7 +2485,7 @@ int lua_axis_Scene_setNavMeshDebugCamera(lua_State* tolua_S) argc, 1); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Scene_setNavMeshDebugCamera'.", &tolua_err); # endif @@ -2498,18 +2498,18 @@ int lua_axis_Scene_setNavMesh(lua_State* tolua_S) axis::Scene* cobj = nullptr; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Scene", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::Scene*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Scene_setNavMesh'", nullptr); @@ -2535,7 +2535,7 @@ int lua_axis_Scene_setNavMesh(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scene:setNavMesh", argc, 1); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Scene_setNavMesh'.", &tolua_err); # endif @@ -2549,18 +2549,18 @@ int lua_axis_Scene_getNavMesh(lua_State* tolua_S) axis::Scene* cobj = nullptr; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Scene", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::Scene*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Scene_getNavMesh'", nullptr); @@ -2583,7 +2583,7 @@ int lua_axis_Scene_getNavMesh(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Scene:getNavMesh", argc, 0); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Scene_getNavMesh'.", &tolua_err); # endif @@ -2601,7 +2601,7 @@ static int tolua_cocos2d_Spawn_create(lua_State* tolua_S) int argc = 0; tolua_Error tolua_err; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.Spawn", 0, &tolua_err)) goto tolua_lerror; #endif @@ -2621,7 +2621,7 @@ static int tolua_cocos2d_Spawn_create(lua_State* tolua_S) { while (i <= argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1 + i, "ax.FiniteTimeAction", 0, &tolua_err)) goto tolua_lerror; #endif @@ -2646,7 +2646,7 @@ static int tolua_cocos2d_Spawn_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.Spawn:create", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Spawn_create'.", &tolua_err); return 0; @@ -2661,7 +2661,7 @@ int lua_cocos2d_CardinalSplineBy_create(lua_State* tolua_S) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.CardinalSplineBy", 0, &tolua_err)) goto tolua_lerror; @@ -2721,7 +2721,7 @@ int lua_cocos2d_CardinalSplineBy_create(lua_State* tolua_S) 3); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_cocos2d_CardinalSplineBy_create'.", &tolua_err); return 0; @@ -2736,7 +2736,7 @@ int tolua_cocos2d_CatmullRomBy_create(lua_State* tolua_S) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.CatmullRomBy", 0, &tolua_err)) goto tolua_lerror; @@ -2787,7 +2787,7 @@ int tolua_cocos2d_CatmullRomBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.CatmullRomBy:create", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_CatmullRomBy_create'.", &tolua_err); return 0; @@ -2802,7 +2802,7 @@ int tolua_cocos2d_CatmullRomTo_create(lua_State* tolua_S) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.CatmullRomTo", 0, &tolua_err)) goto tolua_lerror; @@ -2853,7 +2853,7 @@ int tolua_cocos2d_CatmullRomTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.CatmullRomTo:create", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_CatmullRomTo_create'.", &tolua_err); return 0; @@ -2868,7 +2868,7 @@ int tolua_cocos2d_BezierBy_create(lua_State* tolua_S) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.BezierBy", 0, &tolua_err)) goto tolua_lerror; @@ -2914,7 +2914,7 @@ int tolua_cocos2d_BezierBy_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.BezierBy:create", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_BezierBy_create'.", &tolua_err); return 0; @@ -2929,7 +2929,7 @@ int tolua_cocos2d_BezierTo_create(lua_State* tolua_S) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.BezierTo", 0, &tolua_err)) goto tolua_lerror; @@ -2975,7 +2975,7 @@ int tolua_cocos2d_BezierTo_create(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.BezierTo:create", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_BezierTo_create'.", &tolua_err); return 0; @@ -2991,13 +2991,13 @@ static int tolua_axis_DrawNode_drawPolygon(lua_State* tolua_S) DrawNode* self = nullptr; tolua_Error tolua_err; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.DrawNode", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_cocos2d_DrawNode_drawPolygon'\n", NULL); @@ -3008,7 +3008,7 @@ static int tolua_axis_DrawNode_drawPolygon(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (5 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 2, 0, &tolua_err) || !tolua_isnumber(tolua_S, 3, 0, &tolua_err) || !tolua_istable(tolua_S, 4, 0, &tolua_err) || !tolua_isnumber(tolua_S, 5, 0, &tolua_err) || !tolua_istable(tolua_S, 6, 0, &tolua_err)) @@ -3027,7 +3027,7 @@ static int tolua_axis_DrawNode_drawPolygon(lua_State* tolua_S) if (!tolua_istable(tolua_S, -1, 0, &tolua_err)) { AX_SAFE_DELETE_ARRAY(points); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 goto tolua_lerror; #endif } @@ -3066,7 +3066,7 @@ static int tolua_axis_DrawNode_drawPolygon(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.DrawNode:drawPolygon", argc, 5); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_DrawNode_drawPolygon'.", &tolua_err); return 0; @@ -3081,14 +3081,14 @@ int tolua_axis_DrawNode_drawSolidPoly(lua_State* tolua_S) tolua_Error tolua_err; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.DrawNode", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::DrawNode*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!self) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_DrawNode_drawSolidPoly'", nullptr); @@ -3111,7 +3111,7 @@ int tolua_axis_DrawNode_drawSolidPoly(lua_State* tolua_S) if (!tolua_istable(tolua_S, -1, 0, &tolua_err)) { AX_SAFE_DELETE_ARRAY(points); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 goto tolua_lerror; #endif } @@ -3140,7 +3140,7 @@ int tolua_axis_DrawNode_drawSolidPoly(lua_State* tolua_S) 3); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_DrawNode_drawSolidPoly'.", &tolua_err); #endif @@ -3159,14 +3159,14 @@ int tolua_axis_DrawNode_drawPoly(lua_State* tolua_S) tolua_Error tolua_err; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.DrawNode", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!self) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_DrawNode_drawPoly'", NULL); @@ -3189,7 +3189,7 @@ int tolua_axis_DrawNode_drawPoly(lua_State* tolua_S) if (!tolua_istable(tolua_S, -1, 0, &tolua_err)) { AX_SAFE_DELETE_ARRAY(points); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 goto tolua_lerror; #endif } @@ -3221,7 +3221,7 @@ int tolua_axis_DrawNode_drawPoly(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawPoly", argc, 4); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_DrawNode_drawPoly'.", &tolua_err); #endif @@ -3235,7 +3235,7 @@ int tolua_axis_DrawNode_drawCardinalSpline(lua_State* tolua_S) axis::DrawNode* self = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.DrawNode", 0, &tolua_err)) goto tolua_lerror; @@ -3243,7 +3243,7 @@ int tolua_axis_DrawNode_drawCardinalSpline(lua_State* tolua_S) self = (axis::DrawNode*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!self) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_DrawNode_drawCardinalSpline'", nullptr); @@ -3289,7 +3289,7 @@ int tolua_axis_DrawNode_drawCardinalSpline(lua_State* tolua_S) argc, 4); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_DrawNode_drawCardinalSpline'.", &tolua_err); #endif @@ -3303,7 +3303,7 @@ int tolua_axis_DrawNode_drawCatmullRom(lua_State* tolua_S) axis::DrawNode* self = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.DrawNode", 0, &tolua_err)) goto tolua_lerror; @@ -3311,7 +3311,7 @@ int tolua_axis_DrawNode_drawCatmullRom(lua_State* tolua_S) self = (axis::DrawNode*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!self) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_DrawNode_drawCatmullRom'", nullptr); @@ -3355,7 +3355,7 @@ int tolua_axis_DrawNode_drawCatmullRom(lua_State* tolua_S) 3); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_DrawNode_drawCatmullRom'.", &tolua_err); #endif @@ -3371,14 +3371,14 @@ int tolua_axis_DrawNode_drawPoints(lua_State* tolua_S) tolua_Error tolua_err; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.DrawNode", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::DrawNode*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!self) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_DrawNode_drawPoints'", nullptr); @@ -3401,7 +3401,7 @@ int tolua_axis_DrawNode_drawPoints(lua_State* tolua_S) if (!tolua_istable(tolua_S, -1, 0, &tolua_err)) { AX_SAFE_DELETE_ARRAY(points); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 goto tolua_lerror; #endif } @@ -3438,7 +3438,7 @@ int tolua_axis_DrawNode_drawPoints(lua_State* tolua_S) if (!tolua_istable(tolua_S, -1, 0, &tolua_err)) { AX_SAFE_DELETE_ARRAY(points); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 goto tolua_lerror; #endif } @@ -3465,7 +3465,7 @@ int tolua_axis_DrawNode_drawPoints(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode:drawPoints", argc, 3); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_DrawNode_drawPoints'.", &tolua_err); #endif @@ -3481,7 +3481,7 @@ static int tolua_axis_LayerMultiplex_create(lua_State* tolua_S) int argc = 0; Vector arg0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.LayerMultiplex", 0, &tolua_err)) goto tolua_lerror; @@ -3510,7 +3510,7 @@ static int tolua_axis_LayerMultiplex_create(lua_State* tolua_S) 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_LayerMultiplex_create'.", &tolua_err); return 0; @@ -3526,7 +3526,7 @@ static int tolua_axis_FileUtils_getStringFromFile(lua_State* tolua_S) FileUtils* self = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.FileUtils", 0, &tolua_err)) goto tolua_lerror; @@ -3534,7 +3534,7 @@ static int tolua_axis_FileUtils_getStringFromFile(lua_State* tolua_S) self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_axis_FileUtils_getStringFromFile'\n", nullptr); @@ -3562,7 +3562,7 @@ static int tolua_axis_FileUtils_getStringFromFile(lua_State* tolua_S) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_FileUtils_getStringFromFile'.", &tolua_err); return 0; @@ -3578,7 +3578,7 @@ static int tolua_axis_FileUtils_getDataFromFile(lua_State* tolua_S) FileUtils* self = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.FileUtils", 0, &tolua_err)) goto tolua_lerror; @@ -3586,7 +3586,7 @@ static int tolua_axis_FileUtils_getDataFromFile(lua_State* tolua_S) self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_axis_FileUtils_getDataFromFile'\n", nullptr); @@ -3617,7 +3617,7 @@ static int tolua_axis_FileUtils_getDataFromFile(lua_State* tolua_S) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_FileUtils_getDataFromFile'.", &tolua_err); return 0; @@ -3631,7 +3631,7 @@ static int tolua_axis_UserDefault_getInstance(lua_State* tolua_S) int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.UserDefault", 0, &tolua_err)) goto tolua_lerror; @@ -3650,7 +3650,7 @@ static int tolua_axis_UserDefault_getInstance(lua_State* tolua_S) 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_UserDefault_getInstance'.", &tolua_err); return 0; @@ -3669,7 +3669,7 @@ static int tolua_axis_Texture2D_setTexParameters(lua_State* tolua_S) backend::SamplerAddressMode arg3; backend::SamplerAddressMode arg4; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Texture2D", 0, &tolua_err)) goto tolua_lerror; @@ -3677,7 +3677,7 @@ static int tolua_axis_Texture2D_setTexParameters(lua_State* tolua_S) self = (Texture2D*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_axis_Texture2D_setTexParameters'\n", nullptr); @@ -3689,7 +3689,7 @@ static int tolua_axis_Texture2D_setTexParameters(lua_State* tolua_S) if (4 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(tolua_S, 2, 0, &tolua_err) || !tolua_isnumber(tolua_S, 3, 0, &tolua_err) || !tolua_isnumber(tolua_S, 4, 0, &tolua_err) || !tolua_isnumber(tolua_S, 5, 0, &tolua_err)) { @@ -3713,7 +3713,7 @@ static int tolua_axis_Texture2D_setTexParameters(lua_State* tolua_S) argc, 4); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'setTexParameters'.", &tolua_err); return 0; @@ -3729,18 +3729,18 @@ static int tolua_axis_SpriteBatchNode_getDescendants(lua_State* tolua_S) axis::SpriteBatchNode* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.SpriteBatchNode", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'tolua_axis_SpriteBatchNode_getDescendants'", NULL); @@ -3779,7 +3779,7 @@ static int tolua_axis_SpriteBatchNode_getDescendants(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.SpriteBatchNode:getDescendants", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_SpriteBatchNode_getDescendants'.", &tolua_err); #endif @@ -3794,18 +3794,18 @@ int lua_axis_Scene_getPhysics3DWorld(lua_State* tolua_S) axis::Scene* cobj = nullptr; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Scene", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::Scene*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Scene_getPhysics3DWorld'", nullptr); @@ -3829,7 +3829,7 @@ int lua_axis_Scene_getPhysics3DWorld(lua_State* tolua_S) 0); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Scene_getPhysics3DWorld'.", &tolua_err); # endif @@ -3843,18 +3843,18 @@ int lua_axis_Scene_setPhysics3DDebugCamera(lua_State* tolua_S) axis::Scene* cobj = nullptr; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Scene", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::Scene*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Scene_setPhysics3DDebugCamera'", nullptr); @@ -3865,7 +3865,7 @@ int lua_axis_Scene_setPhysics3DDebugCamera(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 1) { -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 2, "ax.Camera", 0, &tolua_err)) { goto tolua_lerror; @@ -3880,7 +3880,7 @@ int lua_axis_Scene_setPhysics3DDebugCamera(lua_State* tolua_S) argc, 0); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Scene_setPhysics3DDebugCamera'.", &tolua_err); # endif @@ -4274,18 +4274,18 @@ int lua_axis_Sprite_initWithPolygon(lua_State* tolua_S) axis::Sprite* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Sprite", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Sprite*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Sprite_initWithPolygon'", nullptr); @@ -4312,7 +4312,7 @@ int lua_axis_Sprite_initWithPolygon(lua_State* tolua_S) 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Sprite_initWithPolygon'.", &tolua_err); #endif @@ -4325,18 +4325,18 @@ int lua_axis_Sprite_setPolygonInfo(lua_State* tolua_S) axis::Sprite* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Sprite", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Sprite*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Sprite_setPolygonInfo'", nullptr); @@ -4363,7 +4363,7 @@ int lua_axis_Sprite_setPolygonInfo(lua_State* tolua_S) 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Sprite_setPolygonInfo'.", &tolua_err); #endif @@ -4374,11 +4374,11 @@ int lua_axis_Sprite_create(lua_State* tolua_S) { int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.Sprite", 0, &tolua_err)) goto tolua_lerror; #endif @@ -4451,7 +4451,7 @@ int lua_axis_Sprite_create(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.Sprite:create", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Sprite_create'.", &tolua_err); #endif @@ -4570,7 +4570,7 @@ static int tolua_axis_LuaEventListenerAcceleration_create(lua_State* tolua_S) return 0; int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.EventListenerAcceleration", 0, &tolua_err)) goto tolua_lerror; @@ -4580,7 +4580,7 @@ static int tolua_axis_LuaEventListenerAcceleration_create(lua_State* tolua_S) if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -4601,7 +4601,7 @@ static int tolua_axis_LuaEventListenerAcceleration_create(lua_State* tolua_S) "ax.EventListenerAcceleration:create", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_LuaEventListenerAcceleration_create'.", &tolua_err); return 0; @@ -4614,7 +4614,7 @@ static int tolua_cocos2d_LuaEventListenerCustom_create(lua_State* tolua_S) return 0; int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.EventListenerCustom", 0, &tolua_err)) goto tolua_lerror; @@ -4624,7 +4624,7 @@ static int tolua_cocos2d_LuaEventListenerCustom_create(lua_State* tolua_S) if (argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(tolua_S, 2, 0, &tolua_err) || !toluafix_isfunction(tolua_S, 3, "LUA_FUNCTION", 0, &tolua_err)) { @@ -4648,7 +4648,7 @@ static int tolua_cocos2d_LuaEventListenerCustom_create(lua_State* tolua_S) argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_LuaEventListenerCustom_create'.", &tolua_err); return 0; @@ -4683,7 +4683,7 @@ static int tolua_axis_EventListenerKeyboard_create(lua_State* tolua_S) return 0; int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.EventListenerKeyboard", 0, &tolua_err)) goto tolua_lerror; @@ -4708,7 +4708,7 @@ static int tolua_axis_EventListenerKeyboard_create(lua_State* tolua_S) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_EventListenerKeyboard_create'.", &tolua_err); return 0; @@ -4762,14 +4762,14 @@ static int tolua_axis_EventListenerKeyboard_clone(lua_State* tolua_S) int argc = 0; EventListenerKeyboard* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerKeyboard", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_axis_EventListenerKeyboard_clone'\n", nullptr); @@ -4799,7 +4799,7 @@ static int tolua_axis_EventListenerKeyboard_clone(lua_State* tolua_S) argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_EventListenerKeyboard_clone'.", &tolua_err); return 0; @@ -4813,14 +4813,14 @@ static int tolua_axis_EventListenerKeyboard_registerScriptHandler(lua_State* tol int argc = 0; EventListenerKeyboard* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerKeyboard", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, @@ -4833,7 +4833,7 @@ static int tolua_axis_EventListenerKeyboard_registerScriptHandler(lua_State* tol if (argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err) || !tolua_isnumber(tolua_S, 3, 0, &tolua_err)) { @@ -4877,7 +4877,7 @@ static int tolua_axis_EventListenerKeyboard_registerScriptHandler(lua_State* tol "ax.EventListenerKeyboard:registerScriptHandler", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_EventListenerKeyboard_registerScriptHandler'.", &tolua_err); @@ -4904,7 +4904,7 @@ static int tolua_axis_EventListenerTouchOneByOne_create(lua_State* tolua_S) return 0; int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.EventListenerTouchOneByOne", 0, &tolua_err)) goto tolua_lerror; @@ -4929,7 +4929,7 @@ static int tolua_axis_EventListenerTouchOneByOne_create(lua_State* tolua_S) "ax.EventListenerTouchOneByOne:create", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_EventListenerTouchOneByOne_create'.", &tolua_err); return 0; @@ -5001,14 +5001,14 @@ static int tolua_axis_EventListenerTouchOneByOne_clone(lua_State* tolua_S) int argc = 0; EventListenerTouchOneByOne* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerTouchOneByOne", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_axis_EventListenerTouchOneByOne_clone'\n", nullptr); @@ -5041,7 +5041,7 @@ static int tolua_axis_EventListenerTouchOneByOne_clone(lua_State* tolua_S) "ax.EventListenerTouchOneByOne:create", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_EventListenerTouchOneByOne_clone'.", &tolua_err); return 0; @@ -5055,14 +5055,14 @@ static int tolua_axis_EventListenerTouchOneByOne_registerScriptHandler(lua_State int argc = 0; EventListenerTouchOneByOne* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerTouchOneByOne", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, @@ -5075,7 +5075,7 @@ static int tolua_axis_EventListenerTouchOneByOne_registerScriptHandler(lua_State if (argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err) || !tolua_isnumber(tolua_S, 3, 0, &tolua_err)) { @@ -5141,7 +5141,7 @@ static int tolua_axis_EventListenerTouchOneByOne_registerScriptHandler(lua_State "ax.EventListenerTouchOneByOne:registerScriptHandler", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_EventListenerTouchOneByOne_registerScriptHandler'.", &tolua_err); @@ -5169,7 +5169,7 @@ static int tolua_axis_EventListenerTouchAllAtOnce_create(lua_State* tolua_S) return 0; int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.EventListenerTouchAllAtOnce", 0, &tolua_err)) goto tolua_lerror; @@ -5194,7 +5194,7 @@ static int tolua_axis_EventListenerTouchAllAtOnce_create(lua_State* tolua_S) "ax.EventListenerTouchAllAtOnce:registerScriptHandler", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_EventListenerTouchAllAtOnce_create'.", &tolua_err); return 0; @@ -5266,14 +5266,14 @@ static int tolua_axis_EventListenerTouchAllAtOnce_clone(lua_State* tolua_S) int argc = 0; EventListenerTouchAllAtOnce* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerTouchAllAtOnce", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_axis_EventListenerTouchAllAtOnce_clone'\n", @@ -5306,7 +5306,7 @@ static int tolua_axis_EventListenerTouchAllAtOnce_clone(lua_State* tolua_S) "ax.EventListenerTouchAllAtOnce:clone", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_EventListenerTouchAllAtOnce_clone'.", &tolua_err); return 0; @@ -5320,14 +5320,14 @@ static int tolua_axis_EventListenerTouchAllAtOnce_registerScriptHandler(lua_Stat int argc = 0; EventListenerTouchAllAtOnce* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerTouchAllAtOnce", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, @@ -5340,7 +5340,7 @@ static int tolua_axis_EventListenerTouchAllAtOnce_registerScriptHandler(lua_Stat if (argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err) || !tolua_isnumber(tolua_S, 3, 0, &tolua_err)) { @@ -5406,7 +5406,7 @@ static int tolua_axis_EventListenerTouchAllAtOnce_registerScriptHandler(lua_Stat "ax.EventListenerTouchAllAtOnce:registerScriptHandler", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_EventListenerTouchAllAtOnce_registerScriptHandler'.", &tolua_err); @@ -5434,7 +5434,7 @@ static int tolua_axis_EventListenerMouse_create(lua_State* tolua_S) return 0; int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(tolua_S, 1, "ax.EventListenerMouse", 0, &tolua_err)) goto tolua_lerror; @@ -5459,7 +5459,7 @@ static int tolua_axis_EventListenerMouse_create(lua_State* tolua_S) argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_EventListenerMouse_create'.", &tolua_err); return 0; @@ -5531,14 +5531,14 @@ static int tolua_axis_EventListenerMouse_clone(lua_State* tolua_S) int argc = 0; EventListenerMouse* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerMouse", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_axis_EventListenerMouse_clone'\n", nullptr); @@ -5570,7 +5570,7 @@ static int tolua_axis_EventListenerMouse_clone(lua_State* tolua_S) 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_EventListenerMouse_clone'.", &tolua_err); return 0; @@ -5584,14 +5584,14 @@ static int tolua_axis_EventListenerMouse_registerScriptHandler(lua_State* tolua_ int argc = 0; EventListenerMouse* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerMouse", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_axis_EventListenerMouse_registerScriptHandler'\n", @@ -5603,7 +5603,7 @@ static int tolua_axis_EventListenerMouse_registerScriptHandler(lua_State* tolua_ if (argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err) || !tolua_isnumber(tolua_S, 3, 0, &tolua_err)) { @@ -5670,7 +5670,7 @@ static int tolua_axis_EventListenerMouse_registerScriptHandler(lua_State* tolua_ "ax.EventListenerMouse:registerScriptHandler", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_EventListenerMouse_registerScriptHandler'.", &tolua_err); return 0; @@ -5698,18 +5698,18 @@ static int tolua_axis_ActionCamera_reverse(lua_State* tolua_S) int argc = 0; axis::ActionCamera* cobj = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.ActionCamera", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::ActionCamera*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'tolua_axis_ActionCamera_reverse'", NULL); @@ -5727,7 +5727,7 @@ static int tolua_axis_ActionCamera_reverse(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.ActionCamera:reverse", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_ActionCamera_reverse'.", &tolua_err); #endif @@ -5753,18 +5753,18 @@ static int tolua_axis_GridAction_reverse(lua_State* tolua_S) int argc = 0; axis::GridAction* cobj = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.GridAction", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::GridAction*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'tolua_axis_GridAction_reverse'", NULL); @@ -5781,7 +5781,7 @@ static int tolua_axis_GridAction_reverse(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GridAction:reverse", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_axis_GridAction_reverse'.", &tolua_err); #endif @@ -5807,7 +5807,7 @@ static int lua_axis_Label_createWithTTF00(lua_State* L) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(L, 1, "ax.Label", 0, &tolua_err)) goto tolua_lerror; @@ -5818,7 +5818,7 @@ static int lua_axis_Label_createWithTTF00(lua_State* L) if (argc >= 2 && argc <= 4) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err) || !tolua_isstring(L, 3, 0, &tolua_err) || !tolua_isnumber(L, 4, 1, &tolua_err) || !tolua_isnumber(L, 5, 1, &tolua_err)) { @@ -5847,7 +5847,7 @@ static int lua_axis_Label_createWithTTF00(lua_State* L) } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Label:createWithTTF", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_Label_createWithTTF'.", &tolua_err); #endif @@ -5919,16 +5919,16 @@ static int lua_axis_TMXTiledMap_getPropertiesForGID(lua_State* tolua_S) int argc = 0; axis::TMXTiledMap* cobj = NULL; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.TMXTiledMap", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::TMXTiledMap*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_TMXTiledMap_getPropertiesForGID'", NULL); @@ -5952,7 +5952,7 @@ static int lua_axis_TMXTiledMap_getPropertiesForGID(lua_State* tolua_S) "ax.TMXTiledMap:getPropertiesForGID", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_TMXTiledMap_getPropertiesForGID'.", &tolua_err); #endif @@ -5976,16 +5976,16 @@ static int lua_axis_Console_send(lua_State* tolua_S) axis::Console* cobj = nullptr; int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Console", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Console*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Console_send'", NULL); @@ -6010,7 +6010,7 @@ static int lua_axis_Console_send(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.Console:send", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Console_send'.", &tolua_err); #endif @@ -6023,16 +6023,16 @@ static int lua_axis_Console_wait(lua_State* tolua_S) axis::Console* cobj = nullptr; int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Console", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Console*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Console_wait'", NULL); @@ -6056,7 +6056,7 @@ static int lua_axis_Console_wait(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.Console:wait", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Console_wait'.", &tolua_err); #endif @@ -6069,18 +6069,18 @@ static int lua_axis_Console_addCommand(lua_State* tolua_S) axis::Console* cobj = nullptr; int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Console", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Console*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Console_addCommand'", NULL); @@ -6097,7 +6097,7 @@ static int lua_axis_Console_addCommand(lua_State* tolua_S) std::string name = std::string(arg0["name"].asString()); std::string help = std::string(arg0["help"].asString()); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 3, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -6125,7 +6125,7 @@ static int lua_axis_Console_addCommand(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.Console:addCommand", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Console_addCommand'.", &tolua_err); #endif @@ -6151,18 +6151,18 @@ static int lua_axis_OrbitCamera_sphericalRadius(lua_State* tolua_S) int argc = 0; axis::OrbitCamera* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.OrbitCamera", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::OrbitCamera*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!self) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_OrbitCamera_sphericalRadius'", nullptr); @@ -6173,7 +6173,7 @@ static int lua_axis_OrbitCamera_sphericalRadius(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 3) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(tolua_S, 2, 0, &tolua_err) || !tolua_isnumber(tolua_S, 3, 0, &tolua_err) || !tolua_isnumber(tolua_S, 4, 0, &tolua_err)) { @@ -6197,7 +6197,7 @@ static int lua_axis_OrbitCamera_sphericalRadius(lua_State* tolua_S) argc, 3); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_OrbitCamera_sphericalRadius'.", &tolua_err); #endif @@ -6222,18 +6222,18 @@ int lua_axis_TMXLayer_getTileGIDAt(lua_State* tolua_S) axis::TMXLayer* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.TMXLayer", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::TMXLayer*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_TMXLayer_getTileGIDAt'", nullptr); @@ -6274,7 +6274,7 @@ int lua_axis_TMXLayer_getTileGIDAt(lua_State* tolua_S) 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_TMXLayer_getTileGIDAt'.", &tolua_err); #endif @@ -6287,18 +6287,18 @@ int lua_axis_TMXLayer_setTiles(lua_State* tolua_S) int argc = 0; axis::TMXLayer* cobj = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.TMXLayer", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::TMXLayer*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_TMXLayer_setTiles'", nullptr); @@ -6310,7 +6310,7 @@ int lua_axis_TMXLayer_setTiles(lua_State* tolua_S) if (argc == 1) { uint32_t* arg0 = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -6336,7 +6336,7 @@ int lua_axis_TMXLayer_setTiles(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TMXLayer:setTiles", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_TMXLayer_setTiles'.", &tolua_err); #endif @@ -6362,18 +6362,18 @@ static int lua_axis_FastTMXLayer_getTileGIDAt(lua_State* tolua_S) axis::FastTMXLayer* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.FastTMXLayer", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_FastTMXLayer_getTileGIDAt'", nullptr); @@ -6414,7 +6414,7 @@ static int lua_axis_FastTMXLayer_getTileGIDAt(lua_State* tolua_S) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_FastTMXLayer_getTileGIDAt'.", &tolua_err); #endif @@ -6438,18 +6438,18 @@ int lua_axis_Application_isIOS64bit(lua_State* tolua_S) int argc = 0; axis::Application* cobj = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Application", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Application*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Application_isIOS64bit'", nullptr); @@ -6476,7 +6476,7 @@ int lua_axis_Application_isIOS64bit(lua_State* tolua_S) 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Application_isIOS64bit'.", &tolua_err); #endif @@ -6489,18 +6489,18 @@ int lua_axis_Application_is64BitMobileDevice(lua_State* tolua_S) int argc = 0; axis::Application* cobj = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Application", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Application*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Application_is64BitMobileDevice'", nullptr); @@ -6528,7 +6528,7 @@ int lua_axis_Application_is64BitMobileDevice(lua_State* tolua_S) argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Application_is64BitMobileDevice'.", &tolua_err); #endif @@ -6556,7 +6556,7 @@ static int lua_axis_TextureCache_addImageAsync(lua_State* tolua_S) int argc = 0; TextureCache* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.TextureCache", 0, &tolua_err)) goto tolua_lerror; @@ -6564,7 +6564,7 @@ static int lua_axis_TextureCache_addImageAsync(lua_State* tolua_S) self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_TextureCache_addImageAsync'\n", NULL); @@ -6575,7 +6575,7 @@ static int lua_axis_TextureCache_addImageAsync(lua_State* tolua_S) if (2 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(tolua_S, 2, 0, &tolua_err) || !toluafix_isfunction(tolua_S, 3, "LUA_FUNCTION", 0, &tolua_err)) { @@ -6600,7 +6600,7 @@ static int lua_axis_TextureCache_addImageAsync(lua_State* tolua_S) luaL_error(tolua_S, "%s function of TextureCache has wrong number of arguments: %d, was expecting %d\n", "ax.TextureCache:addImageAsync", argc, 1); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_TextureCache_addImageAsync'.", &tolua_err); #endif @@ -6624,18 +6624,18 @@ int lua_axis_GLView_getAllTouches(lua_State* tolua_S) axis::GLView* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.GLView", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::GLView*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_GLView_getAllTouches'", nullptr); @@ -6674,7 +6674,7 @@ int lua_axis_GLView_getAllTouches(lua_State* tolua_S) 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_GLView_getAllTouches'.", &tolua_err); #endif @@ -6699,18 +6699,18 @@ int lua_axis_Camera_unproject(lua_State* tolua_S) axis::Camera* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.Camera", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::Camera*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_Camera_unproject'", nullptr); @@ -6754,7 +6754,7 @@ int lua_axis_Camera_unproject(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:unproject", argc, 3); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Camera_unproject'.", &tolua_err); #endif @@ -6778,11 +6778,11 @@ int lua_axis_Properties_createNonRefCounted(lua_State* tolua_S) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.Properties", 0, &tolua_err)) goto tolua_lerror; #endif @@ -6807,7 +6807,7 @@ int lua_axis_Properties_createNonRefCounted(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Properties:createNonRefCounted", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_Properties_createNonRefCounted'.", &tolua_err); #endif @@ -6843,14 +6843,14 @@ int lua_axis_get_PolygonInfo_rect(lua_State* tolua_S) { axis::PolygonInfo* cobj = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.PolygonInfo", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == cobj) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_get_PolygonInfo_rect'\n", nullptr); @@ -6860,7 +6860,7 @@ int lua_axis_get_PolygonInfo_rect(lua_State* tolua_S) rect_to_luaval(tolua_S, cobj->getRect()); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_get_PolygonInfo_rect'.", &tolua_err); return 0; @@ -6872,14 +6872,14 @@ int lua_axis_set_PolygonInfo_rect(lua_State* tolua_S) int argc = 0; axis::PolygonInfo* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.PolygonInfo", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_set_PolygonInfo_rect'\n", nullptr); @@ -6891,7 +6891,7 @@ int lua_axis_set_PolygonInfo_rect(lua_State* tolua_S) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -6903,7 +6903,7 @@ int lua_axis_set_PolygonInfo_rect(lua_State* tolua_S) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_set_PolygonInfo_rect'.", &tolua_err); return 0; @@ -6914,14 +6914,14 @@ int lua_axis_get_PolygonInfo_filename(lua_State* tolua_S) { axis::PolygonInfo* cobj = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.PolygonInfo", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == cobj) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_get_PolygonInfo_filename'\n", nullptr); @@ -6931,7 +6931,7 @@ int lua_axis_get_PolygonInfo_filename(lua_State* tolua_S) tolua_pushstring(tolua_S, cobj->getFilename().data()); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_get_PolygonInfo_filename'.", &tolua_err); return 0; @@ -6943,14 +6943,14 @@ int lua_axis_set_PolygonInfo_filename(lua_State* tolua_S) int argc = 0; axis::PolygonInfo* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.PolygonInfo", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_set_PolygonInfo_filename'\n", nullptr); @@ -6970,7 +6970,7 @@ int lua_axis_set_PolygonInfo_filename(lua_State* tolua_S) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_set_PolygonInfo_filename'.", &tolua_err); return 0; @@ -6988,14 +6988,14 @@ int lua_axis_get_PipelineDescriptor_programState(lua_State* tolua_S) { axis::PipelineDescriptor* cobj = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.PipelineDescriptor", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::PipelineDescriptor*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == cobj) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_get_PipelineDescriptor_programState'\n", @@ -7006,7 +7006,7 @@ int lua_axis_get_PipelineDescriptor_programState(lua_State* tolua_S) tolua_pushusertype(tolua_S, cobj->programState, "axb.ProgramState"); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_get_PipelineDescriptor_programState'.", &tolua_err); return 0; @@ -7018,14 +7018,14 @@ int lua_axis_set_PipelineDescriptor_programState(lua_State* tolua_S) int argc = 0; axis::PipelineDescriptor* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.PipelineDescriptor", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::PipelineDescriptor*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_set_PipelineDescriptor_programState'\n", @@ -7047,7 +7047,7 @@ int lua_axis_set_PipelineDescriptor_programState(lua_State* tolua_S) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_set_PipelineDescriptor_programState'.", &tolua_err); return 0; @@ -7091,16 +7091,16 @@ static int lua_axis_backend_ProgramState_getUniformLocation(lua_State* tolua_S) int argc = 0; axis::backend::ProgramState* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "axb.ProgramState", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::backend::ProgramState*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_backend_ProgramState_getUniformLocation'", @@ -7146,7 +7146,7 @@ static int lua_axis_backend_ProgramState_getUniformLocation(lua_State* tolua_S) "axb.ProgramState:getUniformLocation", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_backend_ProgramState_getUniformLocation'.", &tolua_err); #endif @@ -7160,14 +7160,14 @@ static int lua_axis_ProgramState_setUniform(lua_State* tolua_S) int argc = 0; axis::backend::ProgramState* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "axb.ProgramState", 0, &tolua_err)) goto tolua_lerror; #endif self = (axis::backend::ProgramState*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'lua_axis_ProgramState_setUniform'\n", nullptr); @@ -7213,7 +7213,7 @@ static int lua_axis_ProgramState_setUniform(lua_State* tolua_S) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_set_PipelineDescriptor_vertexLayout'.", &tolua_err); return 0; @@ -7242,11 +7242,11 @@ int lua_axis_AutoPolygon_generatePolygon(lua_State* tolua_S) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.AutoPolygon", 0, &tolua_err)) goto tolua_lerror; #endif @@ -7326,7 +7326,7 @@ int lua_axis_AutoPolygon_generatePolygon(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AutoPolygon:generatePolygon", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_AutoPolygon_generatePolygon'.", &tolua_err); #endif @@ -7433,7 +7433,7 @@ int register_all_axis_manual(lua_State* tolua_S) static int tolua_cocos2d_utils_captureScreen(lua_State* tolua_S) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_istable(tolua_S, 1, 0, &tolua_err) || !toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err) || !tolua_isstring(tolua_S, 3, 0, &tolua_err)) @@ -7456,7 +7456,7 @@ static int tolua_cocos2d_utils_captureScreen(lua_State* tolua_S) return 0; } -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_utils_captureScreen'.", &tolua_err); return 0; @@ -7465,7 +7465,7 @@ tolua_lerror: static int tolua_cocos2d_utils_findChildren(lua_State* tolua_S) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_istable(tolua_S, 1, 0, &tolua_err) || !tolua_isusertype(tolua_S, 2, "ax.Node", 0, &tolua_err) || !tolua_isstring(tolua_S, 3, 0, &tolua_err)) @@ -7492,7 +7492,7 @@ static int tolua_cocos2d_utils_findChildren(lua_State* tolua_S) } return 1; } -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_utils_findChildren'.", &tolua_err); return 0; @@ -7501,7 +7501,7 @@ tolua_lerror: static int tolua_cocos2d_utils_findChild(lua_State* tolua_S) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Node", 0, &tolua_err) || !tolua_isstring(tolua_S, 2, 0, &tolua_err)) goto tolua_lerror; @@ -7516,7 +7516,7 @@ static int tolua_cocos2d_utils_findChild(lua_State* tolua_S) toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)obj, "ax.Node"); return 1; } -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_utils_findChild'.", &tolua_err); return 0; @@ -7544,7 +7544,7 @@ int register_all_axis_module_manual(lua_State* tolua_S) static int tolua_cocos2d_Mat4_getInversed(lua_State* tolua_S) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_istable(tolua_S, 1, 0, &tolua_err)) goto tolua_lerror; @@ -7560,7 +7560,7 @@ static int tolua_cocos2d_Mat4_getInversed(lua_State* tolua_S) } } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'mat4_getInversed'.", &tolua_err); return 0; @@ -7572,12 +7572,12 @@ static int tolua_cocos2d_Mat4_transformVector(lua_State* tolua_S) bool ok = true; int argc = lua_gettop(tolua_S); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 2 || argc == 3) /* Allow 3 arguments for compatibility with old version */ { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 1, 0, &tolua_err) || !tolua_istable(tolua_S, 2, 0, &tolua_err)) goto tolua_lerror; @@ -7605,7 +7605,7 @@ static int tolua_cocos2d_Mat4_transformVector(lua_State* tolua_S) /* float x, float y, float z, float w, Vec3* dst */ -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 1, 0, &tolua_err) || !tolua_isnumber(tolua_S, 2, 0, &tolua_err) || !tolua_isnumber(tolua_S, 3, 0, &tolua_err) || !tolua_isnumber(tolua_S, 4, 0, &tolua_err) || !tolua_isnumber(tolua_S, 5, 0, &tolua_err)) @@ -7632,7 +7632,7 @@ static int tolua_cocos2d_Mat4_transformVector(lua_State* tolua_S) } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'mat4_transformVector'.", &tolua_err); return 0; @@ -7641,7 +7641,7 @@ tolua_lerror: static int tolua_cocos2d_Mat4_decompose(lua_State* tolua_S) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_istable(tolua_S, 1, 0, &tolua_err) || @@ -7858,7 +7858,7 @@ static int tolua_cocos2d_Mat4_decompose(lua_State* tolua_S) return 0; } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'mat4_decompose'.", &tolua_err); return 0; @@ -7869,13 +7869,13 @@ static int tolua_cocos2d_Vec3_cross(lua_State* tolua_S) { int argc = lua_gettop(tolua_S); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (2 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 1, 0, &tolua_err) || !tolua_istable(tolua_S, 2, 0, &tolua_err)) goto tolua_lerror; else @@ -7902,7 +7902,7 @@ static int tolua_cocos2d_Vec3_cross(lua_State* tolua_S) } else if (3 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 1, 0, &tolua_err) || !tolua_istable(tolua_S, 2, 0, &tolua_err) || !tolua_istable(tolua_S, 3, 0, &tolua_err)) goto tolua_lerror; @@ -7933,7 +7933,7 @@ static int tolua_cocos2d_Vec3_cross(lua_State* tolua_S) } } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'MathUtil_gcrossVec3'.", &tolua_err); return 0; @@ -7942,7 +7942,7 @@ tolua_lerror: static int tolua_cocos2d_Mat4_multiply(lua_State* tolua_S) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_istable(tolua_S, 1, 0, &tolua_err) || !tolua_istable(tolua_S, 2, 0, &tolua_err)) goto tolua_lerror; @@ -7964,7 +7964,7 @@ static int tolua_cocos2d_Mat4_multiply(lua_State* tolua_S) return 1; } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'mat4_multiply'.", &tolua_err); return 0; @@ -7976,12 +7976,12 @@ int tolua_cocos2d_Mat4_translate(lua_State* tolua_S) bool ok = true; int argc = lua_gettop(tolua_S); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 1, 0, &tolua_err) || !tolua_istable(tolua_S, 2, 0, &tolua_err)) goto tolua_lerror; @@ -8005,7 +8005,7 @@ int tolua_cocos2d_Mat4_translate(lua_State* tolua_S) } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Mat4_translate'.", &tolua_err); return 0; @@ -8017,12 +8017,12 @@ int tolua_cocos2d_Mat4_createRotationZ(lua_State* tolua_S) bool ok = true; int argc = lua_gettop(tolua_S); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 1, 0, &tolua_err) || !tolua_isnumber(tolua_S, 2, 0, &tolua_err)) goto tolua_lerror; @@ -8042,7 +8042,7 @@ int tolua_cocos2d_Mat4_createRotationZ(lua_State* tolua_S) } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Mat4_createRotationZ'.", &tolua_err); return 0; @@ -8054,12 +8054,12 @@ int tolua_cocos2d_Mat4_setIdentity(lua_State* tolua_S) bool ok = true; int argc = lua_gettop(tolua_S); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 1, 0, &tolua_err)) goto tolua_lerror; @@ -8077,7 +8077,7 @@ int tolua_cocos2d_Mat4_setIdentity(lua_State* tolua_S) } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Mat4_setIdentity'.", &tolua_err); return 0; @@ -8089,12 +8089,12 @@ int tolua_cocos2d_Mat4_createTranslation(lua_State* tolua_S) bool ok = true; int argc = lua_gettop(tolua_S); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 3) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(tolua_S, 1, 0, &tolua_err) || !tolua_isnumber(tolua_S, 2, 0, &tolua_err) || !tolua_isnumber(tolua_S, 3, 0, &tolua_err)) @@ -8114,7 +8114,7 @@ int tolua_cocos2d_Mat4_createTranslation(lua_State* tolua_S) } else if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 1, 0, &tolua_err)) goto tolua_lerror; else @@ -8134,7 +8134,7 @@ int tolua_cocos2d_Mat4_createTranslation(lua_State* tolua_S) } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Mat4_createTranslation'.", &tolua_err); return 0; @@ -8146,12 +8146,12 @@ int tolua_cocos2d_Mat4_createRotation(lua_State* tolua_S) bool ok = true; int argc = lua_gettop(tolua_S); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 1, 0, &tolua_err)) goto tolua_lerror; @@ -8172,7 +8172,7 @@ int tolua_cocos2d_Mat4_createRotation(lua_State* tolua_S) } else if (argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(tolua_S, 1, 0, &tolua_err) || !tolua_isnumber(tolua_S, 2, 0, &tolua_err)) goto tolua_lerror; @@ -8195,7 +8195,7 @@ int tolua_cocos2d_Mat4_createRotation(lua_State* tolua_S) } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'tolua_cocos2d_Mat4_createRotation'.", &tolua_err); return 0; @@ -8306,12 +8306,12 @@ static int tolua_cocos2d_bytearray_vec2(lua_State* L) bool ok = true; int argc = lua_gettop(L); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 1, 0, &tolua_err)) goto tolua_lerror; @@ -8335,7 +8335,7 @@ static int tolua_cocos2d_bytearray_vec2(lua_State* L) } } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'tolua_cocos2d_bytearray_template'.", &tolua_err); return 0; @@ -8347,12 +8347,12 @@ static int tolua_cocos2d_bytearray_vec3(lua_State* L) bool ok = true; int argc = lua_gettop(L); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 1, 0, &tolua_err)) goto tolua_lerror; @@ -8376,7 +8376,7 @@ static int tolua_cocos2d_bytearray_vec3(lua_State* L) } } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'tolua_cocos2d_bytearray_template'.", &tolua_err); return 0; @@ -8388,12 +8388,12 @@ static int tolua_cocos2d_bytearray_vec4(lua_State* L) bool ok = true; int argc = lua_gettop(L); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 1, 0, &tolua_err)) goto tolua_lerror; @@ -8417,7 +8417,7 @@ static int tolua_cocos2d_bytearray_vec4(lua_State* L) } } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'tolua_cocos2d_bytearray_template'.", &tolua_err); return 0; @@ -8429,12 +8429,12 @@ static int tolua_cocos2d_bytearray_mat4(lua_State* L) bool ok = true; int argc = lua_gettop(L); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 1, 0, &tolua_err)) goto tolua_lerror; @@ -8458,7 +8458,7 @@ static int tolua_cocos2d_bytearray_mat4(lua_State* L) } } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'tolua_cocos2d_bytearray_template'.", &tolua_err); return 0; @@ -8470,12 +8470,12 @@ static int tolua_cocos2d_bytearray_int(lua_State* L) bool ok = true; int argc = lua_gettop(L); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(L, 1, 0, &tolua_err)) goto tolua_lerror; @@ -8499,7 +8499,7 @@ static int tolua_cocos2d_bytearray_int(lua_State* L) } } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'tolua_cocos2d_bytearray_template'.", &tolua_err); return 0; @@ -8511,12 +8511,12 @@ static int tolua_cocos2d_bytearray_float(lua_State* L) bool ok = true; int argc = lua_gettop(L); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(L, 1, 0, &tolua_err)) goto tolua_lerror; @@ -8540,7 +8540,7 @@ static int tolua_cocos2d_bytearray_float(lua_State* L) } } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'tolua_cocos2d_bytearray_template'.", &tolua_err); return 0; @@ -8551,12 +8551,12 @@ static int tolua_cocos2d_bytearray_intv(lua_State* L) { int argc = lua_gettop(L); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 1, 0, &tolua_err)) goto tolua_lerror; @@ -8587,7 +8587,7 @@ static int tolua_cocos2d_bytearray_intv(lua_State* L) } } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'tolua_cocos2d_bytearray_elev'.", &tolua_err); return 0; @@ -8598,12 +8598,12 @@ static int tolua_cocos2d_bytearray_floatv(lua_State* L) { int argc = lua_gettop(L); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 1, 0, &tolua_err)) goto tolua_lerror; @@ -8634,7 +8634,7 @@ static int tolua_cocos2d_bytearray_floatv(lua_State* L) } } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'tolua_cocos2d_bytearray_elev'.", &tolua_err); return 0; diff --git a/extensions/scripting/lua-bindings/manual/cocostudio/lua-cocostudio-conversions.cpp b/extensions/scripting/lua-bindings/manual/cocostudio/lua-cocostudio-conversions.cpp index 9e723846af..f3fafe4d8b 100644 --- a/extensions/scripting/lua-bindings/manual/cocostudio/lua-cocostudio-conversions.cpp +++ b/extensions/scripting/lua-bindings/manual/cocostudio/lua-cocostudio-conversions.cpp @@ -26,7 +26,7 @@ #include "scripting/lua-bindings/manual/cocostudio/lua-cocostudio-conversions.h" #include "ActionTimeline/CCActionTimeline.h" -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 extern void luaval_to_native_err(lua_State* L, const char* msg, tolua_Error* err, const char* funcName); #endif @@ -40,7 +40,7 @@ bool luaval_to_animationInfo(lua_State* L, int lo, cocostudio::timeline::Animati tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); #endif ok = false; diff --git a/extensions/scripting/lua-bindings/manual/cocostudio/lua_axis_cocostudio_manual.cpp b/extensions/scripting/lua-bindings/manual/cocostudio/lua_axis_cocostudio_manual.cpp index 0eb224f1a9..18628a2988 100644 --- a/extensions/scripting/lua-bindings/manual/cocostudio/lua_axis_cocostudio_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/cocostudio/lua_axis_cocostudio_manual.cpp @@ -75,7 +75,7 @@ static int lua_axis_ArmatureAnimation_setMovementEventCallFunc(lua_State* L) int argc = 0; ArmatureAnimation* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ccs.ArmatureAnimation", 0, &tolua_err)) goto tolua_lerror; @@ -83,7 +83,7 @@ static int lua_axis_ArmatureAnimation_setMovementEventCallFunc(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_ArmatureAnimation_setMovementEventCallFunc'\n", NULL); @@ -94,7 +94,7 @@ static int lua_axis_ArmatureAnimation_setMovementEventCallFunc(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -135,7 +135,7 @@ static int lua_axis_ArmatureAnimation_setMovementEventCallFunc(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'setMovementEventCallFunc'.", &tolua_err); return 0; @@ -150,7 +150,7 @@ static int lua_axis_ArmatureAnimation_setFrameEventCallFunc(lua_State* L) int argc = 0; ArmatureAnimation* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ccs.ArmatureAnimation", 0, &tolua_err)) goto tolua_lerror; @@ -158,7 +158,7 @@ static int lua_axis_ArmatureAnimation_setFrameEventCallFunc(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_ArmatureAnimation_setFrameEventCallFunc'\n", NULL); @@ -169,7 +169,7 @@ static int lua_axis_ArmatureAnimation_setFrameEventCallFunc(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -212,7 +212,7 @@ static int lua_axis_ArmatureAnimation_setFrameEventCallFunc(lua_State* L) "'setFrameEventCallFunc' function of ArmatureAnimation has wrong number of arguments: %d, was expecting %d\n", argc, 1); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'setFrameEventCallFunc'.", &tolua_err); #endif @@ -239,7 +239,7 @@ static int lua_axis_ArmatureDataManager_addArmatureFileInfoAsyncCallFunc(lua_Sta int argc = 0; ArmatureDataManager* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ccs.ArmatureDataManager", 0, &tolua_err)) goto tolua_lerror; @@ -247,7 +247,7 @@ static int lua_axis_ArmatureDataManager_addArmatureFileInfoAsyncCallFunc(lua_Sta self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, @@ -260,7 +260,7 @@ static int lua_axis_ArmatureDataManager_addArmatureFileInfoAsyncCallFunc(lua_Sta if (2 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(L, 2, 0, &tolua_err) || !toluafix_isfunction(L, 3, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -282,7 +282,7 @@ static int lua_axis_ArmatureDataManager_addArmatureFileInfoAsyncCallFunc(lua_Sta } else if (4 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(L, 2, 0, &tolua_err) || !tolua_isstring(L, 3, 0, &tolua_err) || !tolua_isstring(L, 4, 0, &tolua_err) || !toluafix_isfunction(L, 5, "LUA_FUNCTION", 0, &tolua_err)) { @@ -312,7 +312,7 @@ static int lua_axis_ArmatureDataManager_addArmatureFileInfoAsyncCallFunc(lua_Sta "expecting %d\n", argc, 1); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'addArmatureFileInfoAsync'.", &tolua_err); #endif @@ -339,7 +339,7 @@ static int lua_axis_extension_Bone_setIgnoreMovementBoneData(lua_State* L) int argc = 0; cocostudio::Bone* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ccs.Bone", 0, &tolua_err)) goto tolua_lerror; @@ -347,7 +347,7 @@ static int lua_axis_extension_Bone_setIgnoreMovementBoneData(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_extension_Bone_setIgnoreMovementBoneData'\n", NULL); @@ -359,7 +359,7 @@ static int lua_axis_extension_Bone_setIgnoreMovementBoneData(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isboolean(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -372,7 +372,7 @@ static int lua_axis_extension_Bone_setIgnoreMovementBoneData(lua_State* L) argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'setIgnoreMovementBoneData'.", &tolua_err); return 0; @@ -387,7 +387,7 @@ static int lua_axis_extension_Bone_getIgnoreMovementBoneData(lua_State* L) int argc = 0; cocostudio::Bone* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ccs.Bone", 0, &tolua_err)) goto tolua_lerror; @@ -395,7 +395,7 @@ static int lua_axis_extension_Bone_getIgnoreMovementBoneData(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_extension_Bone_getIgnoreMovementBoneData'\n", NULL); @@ -415,7 +415,7 @@ static int lua_axis_extension_Bone_getIgnoreMovementBoneData(lua_State* L) argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'getIgnoreMovementBoneData'.", &tolua_err); return 0; @@ -439,11 +439,11 @@ int lua_axis_studio_ActionTimelineCache_getInstance(lua_State* L) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(L, 1, "ccs.ActionTimelineCache", 0, &tolua_err)) goto tolua_lerror; #endif @@ -461,7 +461,7 @@ int lua_axis_studio_ActionTimelineCache_getInstance(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ActionTimelineCache:getInstance", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_studio_ActionTimelineCache_getInstance'.", &tolua_err); #endif @@ -487,7 +487,7 @@ static int lua_axis_ActionTimeline_setFrameEventCallFunc(lua_State* L) int argc = 0; cocostudio::timeline::ActionTimeline* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ccs.ActionTimeline", 0, &tolua_err)) goto tolua_lerror; @@ -495,7 +495,7 @@ static int lua_axis_ActionTimeline_setFrameEventCallFunc(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_ActionTimeline_setFrameEventCallFunc'\n", NULL); @@ -506,7 +506,7 @@ static int lua_axis_ActionTimeline_setFrameEventCallFunc(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -528,7 +528,7 @@ static int lua_axis_ActionTimeline_setFrameEventCallFunc(lua_State* L) L, "'setFrameEventCallFunc' function of ActionTimeline has wrong number of arguments: %d, was expecting %d\n", argc, 1); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'setFrameEventCallFunc'.", &tolua_err); #endif @@ -550,11 +550,11 @@ int lua_axis_CustomGUIReader_create(lua_State* L) { int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(L, 1, "ccs.CustomGUIReader", 0, &tolua_err)) goto tolua_lerror; #endif @@ -571,14 +571,14 @@ int lua_axis_CustomGUIReader_create(lua_State* L) { break; } -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 3, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; } #endif LUA_FUNCTION arg1 = toluafix_ref_function(L, 3, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 4, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -593,7 +593,7 @@ int lua_axis_CustomGUIReader_create(lua_State* L) } while (0); luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d", "ccs.CustomGUIReader:create", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_CustomGUIReader_create'.", &tolua_err); #endif diff --git a/extensions/scripting/lua-bindings/manual/cocostudio/lua_axis_csloader_manual.cpp b/extensions/scripting/lua-bindings/manual/cocostudio/lua_axis_csloader_manual.cpp index 94e473e626..71fccc2827 100644 --- a/extensions/scripting/lua-bindings/manual/cocostudio/lua_axis_csloader_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/cocostudio/lua_axis_csloader_manual.cpp @@ -36,11 +36,11 @@ int lua_axis_csloader_CSLoader_createTimeline(lua_State* tolua_S) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.CSLoader", 0, &tolua_err)) goto tolua_lerror; #endif @@ -61,7 +61,7 @@ int lua_axis_csloader_CSLoader_createTimeline(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.CSLoader:createTimeline", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_CSLoader_createTimeline'.", &tolua_err); #endif @@ -72,11 +72,11 @@ int lua_axis_csloader_CSLoader_createNode(lua_State* tolua_S) { int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.CSLoader", 0, &tolua_err)) goto tolua_lerror; #endif @@ -94,7 +94,7 @@ int lua_axis_csloader_CSLoader_createNode(lua_State* tolua_S) break; } -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 3, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -135,7 +135,7 @@ int lua_axis_csloader_CSLoader_createNode(lua_State* tolua_S) ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.CSLoader:createNode", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_csloader_CSLoader_createNode'.", &tolua_err); #endif diff --git a/extensions/scripting/lua-bindings/manual/controller/lua_axis_controller_manual.cpp b/extensions/scripting/lua-bindings/manual/controller/lua_axis_controller_manual.cpp index 6c9ce2b4b8..0af2bfa279 100644 --- a/extensions/scripting/lua-bindings/manual/controller/lua_axis_controller_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/controller/lua_axis_controller_manual.cpp @@ -100,14 +100,14 @@ static int tolua_axis_EventListenerController_clone(lua_State* tolua_S) int argc = 0; axis::EventListenerController* self = nullptr; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerController", 0, &tolua_err)) goto tolua_lerror; # endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_axis_EventListenerController_clone'\n", nullptr); @@ -141,7 +141,7 @@ static int tolua_axis_EventListenerController_clone(lua_State* tolua_S) AXLOG("'clone' has wrong number of arguments: %d, was expecting %d\n", argc, 0); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'clone'.", &tolua_err); return 0; @@ -155,14 +155,14 @@ static int tolua_axis_EventListenerController_registerScriptHandler(lua_State* t int argc = 0; axis::EventListenerController* self = nullptr; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerController", 0, &tolua_err)) goto tolua_lerror; # endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, @@ -175,7 +175,7 @@ static int tolua_axis_EventListenerController_registerScriptHandler(lua_State* t if (argc == 2) { -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err) || !tolua_isnumber(tolua_S, 3, 0, &tolua_err)) { @@ -283,7 +283,7 @@ static int tolua_axis_EventListenerController_registerScriptHandler(lua_State* t AXLOG("'registerScriptHandler' has wrong number of arguments: %d, was expecting %d\n", argc, 2); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'registerScriptHandler'.", &tolua_err); return 0; @@ -309,14 +309,14 @@ static int tolua_axis_Controller_getKeyStatus(lua_State* tolua_S) int argc = 0; axis::Controller* self = nullptr; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.Controller", 0, &tolua_err)) goto tolua_lerror; # endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, "invalid 'self' in function 'tolua_axis_Controller_getKeyStatus'\n", nullptr); @@ -328,7 +328,7 @@ static int tolua_axis_Controller_getKeyStatus(lua_State* tolua_S) if (argc == 1) { -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isnumber(tolua_S, 2, 0, &tolua_err)) goto tolua_lerror; # endif @@ -352,7 +352,7 @@ static int tolua_axis_Controller_getKeyStatus(lua_State* tolua_S) AXLOG("'clone' has wrong number of arguments: %d, was expecting %d\n", argc, 0); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'getKeyStatus'.", &tolua_err); return 0; diff --git a/extensions/scripting/lua-bindings/manual/extension/lua_axis_extension_manual.cpp b/extensions/scripting/lua-bindings/manual/extension/lua_axis_extension_manual.cpp index 9a9e1ffaaa..e9c9911f19 100644 --- a/extensions/scripting/lua-bindings/manual/extension/lua_axis_extension_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/extension/lua_axis_extension_manual.cpp @@ -85,7 +85,7 @@ static int lua_axis_AssetsManager_setDelegate(lua_State* L) int argc = 0; AssetsManager* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.AssetsManager", 0, &tolua_err)) goto tolua_lerror; @@ -93,7 +93,7 @@ static int lua_axis_AssetsManager_setDelegate(lua_State* L) self = (AssetsManager*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_AssetsManager_setDelegate'\n", nullptr); @@ -105,7 +105,7 @@ static int lua_axis_AssetsManager_setDelegate(lua_State* L) if (2 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err) || !tolua_isnumber(L, 3, 0, &tolua_err)) { goto tolua_lerror; @@ -132,7 +132,7 @@ static int lua_axis_AssetsManager_setDelegate(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.AssetsManager:setDelegate", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_AssetsManager_setDelegate'.", &tolua_err); return 0; @@ -164,7 +164,7 @@ static int lua_axis_Extension_EventListenerAssetsManagerEx_create(lua_State* L) int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(L, 1, "ax.EventListenerAssetsManagerEx", 0, &tolua_err)) goto tolua_lerror; @@ -175,7 +175,7 @@ static int lua_axis_Extension_EventListenerAssetsManagerEx_create(lua_State* L) if (argc == 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 2, "ax.AssetsManagerEx", 0, &tolua_err) || !toluafix_isfunction(L, 3, "LUA_FUNCTION", 0, &tolua_err)) goto tolua_lerror; @@ -204,7 +204,7 @@ static int lua_axis_Extension_EventListenerAssetsManagerEx_create(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "create", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_Extension_EventListenerAssetsManagerEx_create'.", &tolua_err); return 0; @@ -228,18 +228,18 @@ int lua_axis_extension_ParticleSystem3D_getParticlePool(lua_State* tolua_S) axis::ParticleSystem3D* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.ParticleSystem3D", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_extension_ParticleSystem3D_getParticlePool'", @@ -266,7 +266,7 @@ int lua_axis_extension_ParticleSystem3D_getParticlePool(lua_State* tolua_S) "ax.ParticleSystem3D:getParticlePool", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_extension_ParticleSystem3D_getParticlePool'.", &tolua_err); #endif @@ -291,18 +291,18 @@ int lua_axis_extension_ParticlePool_getActiveDataList(lua_State* tolua_S) axis::ParticlePool* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.ParticlePool", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::ParticlePool*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_extension_ParticlePool_getActiveDataList'", @@ -345,7 +345,7 @@ int lua_axis_extension_ParticlePool_getActiveDataList(lua_State* tolua_S) "ax.ParticlePool:getActiveParticleList", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_extension_ParticlePool_getActiveParticleList'.", &tolua_err); diff --git a/extensions/scripting/lua-bindings/manual/navmesh/lua_axis_navmesh_conversions.cpp b/extensions/scripting/lua-bindings/manual/navmesh/lua_axis_navmesh_conversions.cpp index 803a551977..59e70e2c37 100644 --- a/extensions/scripting/lua-bindings/manual/navmesh/lua_axis_navmesh_conversions.cpp +++ b/extensions/scripting/lua-bindings/manual/navmesh/lua_axis_navmesh_conversions.cpp @@ -30,7 +30,7 @@ # include "scripting/lua-bindings/manual/LuaBasicConversions.h" # include "navmesh/CCNavMeshAgent.h" -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 extern void luaval_to_native_err(lua_State* L, const char* msg, tolua_Error* err, const char* funcName); # endif @@ -44,7 +44,7 @@ bool luaval_to_navmeshagentparam(lua_State* L, int lo, axis::NavMeshAgentParam* tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); # endif ok = false; @@ -120,7 +120,7 @@ bool luaval_to_offmeshlinkdata(lua_State* L, int lo, axis::OffMeshLinkData* outV tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); # endif ok = false; diff --git a/extensions/scripting/lua-bindings/manual/navmesh/lua_axis_navmesh_manual.cpp b/extensions/scripting/lua-bindings/manual/navmesh/lua_axis_navmesh_manual.cpp index 602d9554b2..4a137d5a5b 100644 --- a/extensions/scripting/lua-bindings/manual/navmesh/lua_axis_navmesh_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/navmesh/lua_axis_navmesh_manual.cpp @@ -38,18 +38,18 @@ int lua_axis_navmesh_NavMeshAgent_move(lua_State* tolua_S) axis::NavMeshAgent* cobj = nullptr; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.NavMeshAgent", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_navmesh_NavMeshAgent_move'", nullptr); @@ -79,7 +79,7 @@ int lua_axis_navmesh_NavMeshAgent_move(lua_State* tolua_S) ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.NavMeshAgent:move"); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 3, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -106,7 +106,7 @@ int lua_axis_navmesh_NavMeshAgent_move(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.NavMeshAgent:move", argc, 1); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_navmesh_NavMeshAgent_move'.", &tolua_err); # endif diff --git a/extensions/scripting/lua-bindings/manual/network/lua_xml_http_request.cpp b/extensions/scripting/lua-bindings/manual/network/lua_xml_http_request.cpp index c7ecbc1592..a89f259260 100644 --- a/extensions/scripting/lua-bindings/manual/network/lua_xml_http_request.cpp +++ b/extensions/scripting/lua-bindings/manual/network/lua_xml_http_request.cpp @@ -298,7 +298,7 @@ static int lua_axis_XMLHttpRequest_constructor(lua_State* L) int argc = 0; LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif @@ -314,7 +314,7 @@ static int lua_axis_XMLHttpRequest_constructor(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "XMLHttpRequest", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_constructor'.", &tolua_err); return 0; @@ -325,14 +325,14 @@ static int lua_get_XMLHttpRequest_responseType(lua_State* L) { LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_responseType'\n", nullptr); @@ -343,7 +343,7 @@ static int lua_get_XMLHttpRequest_responseType(lua_State* L) tolua_pushnumber(L, (lua_Number)self->getResponseType()); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_responseType'.", &tolua_err); return 0; @@ -355,14 +355,14 @@ static int lua_set_XMLHttpRequest_responseType(lua_State* L) int argc = 0; LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_set_XMLHttpRequest_responseType'\n", nullptr); @@ -374,7 +374,7 @@ static int lua_set_XMLHttpRequest_responseType(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -389,7 +389,7 @@ static int lua_set_XMLHttpRequest_responseType(lua_State* L) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_set_XMLHttpRequest_responseType'.", &tolua_err); return 0; @@ -400,14 +400,14 @@ static int lua_get_XMLHttpRequest_withCredentials(lua_State* L) { LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_withCredentials'\n", nullptr); @@ -418,7 +418,7 @@ static int lua_get_XMLHttpRequest_withCredentials(lua_State* L) tolua_pushboolean(L, self->getWithCredentialsValue()); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_withCredentials'.", &tolua_err); return 0; @@ -430,14 +430,14 @@ static int lua_set_XMLHttpRequest_withCredentials(lua_State* L) int argc = 0; LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_set_XMLHttpRequest_withCredentials'\n", nullptr); @@ -449,7 +449,7 @@ static int lua_set_XMLHttpRequest_withCredentials(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isboolean(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -461,7 +461,7 @@ static int lua_set_XMLHttpRequest_withCredentials(lua_State* L) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_set_XMLHttpRequest_withCredentials'.", &tolua_err); return 0; @@ -472,14 +472,14 @@ static int lua_get_XMLHttpRequest_timeout(lua_State* L) { LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_timeout'\n", nullptr); @@ -490,7 +490,7 @@ static int lua_get_XMLHttpRequest_timeout(lua_State* L) tolua_pushnumber(L, (lua_Number)self->getTimeout()); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_timeout'.", &tolua_err); return 0; @@ -502,14 +502,14 @@ static int lua_set_XMLHttpRequest_timeout(lua_State* L) int argc = 0; LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_set_XMLHttpRequest_timeout'\n", nullptr); @@ -521,7 +521,7 @@ static int lua_set_XMLHttpRequest_timeout(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isnumber(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -532,7 +532,7 @@ static int lua_set_XMLHttpRequest_timeout(lua_State* L) luaL_error(L, "'setTimeout' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_set_XMLHttpRequest_timeout'.", &tolua_err); return 0; @@ -543,14 +543,14 @@ static int lua_get_XMLHttpRequest_readyState(lua_State* L) { LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_readyState'\n", nullptr); @@ -562,7 +562,7 @@ static int lua_get_XMLHttpRequest_readyState(lua_State* L) return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_readyState'.", &tolua_err); return 0; @@ -573,14 +573,14 @@ static int lua_get_XMLHttpRequest_status(lua_State* L) { LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_status'\n", nullptr); @@ -592,7 +592,7 @@ static int lua_get_XMLHttpRequest_status(lua_State* L) return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_status'.", &tolua_err); return 0; @@ -603,14 +603,14 @@ static int lua_get_XMLHttpRequest_statusText(lua_State* L) { LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_statusText'\n", nullptr); @@ -622,7 +622,7 @@ static int lua_get_XMLHttpRequest_statusText(lua_State* L) return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_statusText'.", &tolua_err); return 0; @@ -633,14 +633,14 @@ static int lua_get_XMLHttpRequest_responseText(lua_State* L) { LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_responseText'\n", nullptr); @@ -650,7 +650,7 @@ static int lua_get_XMLHttpRequest_responseText(lua_State* L) lua_pushlstring(L, self->getData(), self->getDataSize()); return 1; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_responseText'.", &tolua_err); return 0; @@ -661,14 +661,14 @@ static int lua_get_XMLHttpRequest_response(lua_State* L) { LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_get_XMLHttpRequest_response'\n", nullptr); @@ -723,7 +723,7 @@ static int lua_get_XMLHttpRequest_response(lua_State* L) return 1; } -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_get_XMLHttpRequest_response'.", &tolua_err); return 0; @@ -735,14 +735,14 @@ static int lua_axis_XMLHttpRequest_open(lua_State* L) int argc = 0; LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_open'\n", nullptr); @@ -754,7 +754,7 @@ static int lua_axis_XMLHttpRequest_open(lua_State* L) if (argc >= 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(L, 2, 0, &tolua_err) || !tolua_isstring(L, 3, 0, &tolua_err)) goto tolua_lerror; #endif @@ -764,7 +764,7 @@ static int lua_axis_XMLHttpRequest_open(lua_State* L) bool async = true; if (argc > 2) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isboolean(L, 4, 0, &tolua_err)) goto tolua_lerror; #endif @@ -818,7 +818,7 @@ static int lua_axis_XMLHttpRequest_open(lua_State* L) luaL_error(L, "'open' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_open'.", &tolua_err); return 0; @@ -833,14 +833,14 @@ static int lua_axis_XMLHttpRequest_send(lua_State* L) const char* data = NULL; size_t size = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_send'\n", nullptr); @@ -854,7 +854,7 @@ static int lua_axis_XMLHttpRequest_send(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -874,7 +874,7 @@ static int lua_axis_XMLHttpRequest_send(lua_State* L) self->_sendRequest(); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_send'.", &tolua_err); return 0; @@ -889,14 +889,14 @@ static int lua_axis_XMLHttpRequest_abort(lua_State* L) int argc = 0; LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_send'\n", nullptr); @@ -913,7 +913,7 @@ static int lua_axis_XMLHttpRequest_abort(lua_State* L) } return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_send'.", &tolua_err); return 0; @@ -925,14 +925,14 @@ static int lua_axis_XMLHttpRequest_setRequestHeader(lua_State* L) int argc = 0; LuaMinXmlHttpRequest* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_setRequestHeader'\n", nullptr); @@ -944,7 +944,7 @@ static int lua_axis_XMLHttpRequest_setRequestHeader(lua_State* L) if (2 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(L, 2, 0, &tolua_err) || !tolua_isstring(L, 3, 0, &tolua_err)) goto tolua_lerror; #endif @@ -958,7 +958,7 @@ static int lua_axis_XMLHttpRequest_setRequestHeader(lua_State* L) luaL_error(L, "'setRequestHeader' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_setRequestHeader'.", &tolua_err); return 0; @@ -973,14 +973,14 @@ static int lua_axis_XMLHttpRequest_getAllResponseHeaders(lua_State* L) std::stringstream responseheaders; std::string responseheader; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_getAllResponseHeaders'\n", nullptr); @@ -1008,7 +1008,7 @@ static int lua_axis_XMLHttpRequest_getAllResponseHeaders(lua_State* L) "'getAllResponseHeaders' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_getAllResponseHeaders'.", &tolua_err); return 0; @@ -1022,14 +1022,14 @@ static int lua_axis_XMLHttpRequest_getResponseHeader(lua_State* L) std::string responseheader; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_getAllResponseHeaders'\n", nullptr); @@ -1041,7 +1041,7 @@ static int lua_axis_XMLHttpRequest_getResponseHeader(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -1063,7 +1063,7 @@ static int lua_axis_XMLHttpRequest_getResponseHeader(lua_State* L) luaL_error(L, "'getResponseHeader' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_getAllResponseHeaders'.", &tolua_err); return 0; @@ -1077,14 +1077,14 @@ static int lua_axis_XMLHttpRequest_registerScriptHandler(lua_State* L) std::string responseheader; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_registerScriptHandler'\n", nullptr); @@ -1096,7 +1096,7 @@ static int lua_axis_XMLHttpRequest_registerScriptHandler(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) goto tolua_lerror; #endif @@ -1111,7 +1111,7 @@ static int lua_axis_XMLHttpRequest_registerScriptHandler(lua_State* L) "'registerScriptHandler' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_registerScriptHandler'.", &tolua_err); return 0; @@ -1125,14 +1125,14 @@ static int lua_axis_XMLHttpRequest_unregisterScriptHandler(lua_State* L) std::string responseheader; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.XMLHttpRequest", 0, &tolua_err)) goto tolua_lerror; #endif self = (LuaMinXmlHttpRequest*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_XMLHttpRequest_unregisterScriptHandler'\n", nullptr); @@ -1154,7 +1154,7 @@ static int lua_axis_XMLHttpRequest_unregisterScriptHandler(lua_State* L) "'unregisterScriptHandler' function of XMLHttpRequest wrong number of arguments: %d, was expecting %d\n", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_XMLHttpRequest_unregisterScriptHandler'.", &tolua_err); return 0; diff --git a/extensions/scripting/lua-bindings/manual/physics/lua_axis_physics_manual.cpp b/extensions/scripting/lua-bindings/manual/physics/lua_axis_physics_manual.cpp index 1f5bb6b830..b70c782d73 100644 --- a/extensions/scripting/lua-bindings/manual/physics/lua_axis_physics_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/physics/lua_axis_physics_manual.cpp @@ -50,18 +50,18 @@ int lua_axis_physics_PhysicsBody_getJoints(lua_State* tolua_S) axis::PhysicsBody* cobj = nullptr; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsBody", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsBody_getJoints'", NULL); @@ -102,7 +102,7 @@ int lua_axis_physics_PhysicsBody_getJoints(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getJoints", argc, 0); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsBody_getJoints'.", &tolua_err); # endif @@ -115,18 +115,18 @@ int lua_axis_physics_PhysicsWorld_getScene(lua_State* tolua_S) int argc = 0; axis::PhysicsWorld* cobj = nullptr; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsWorld", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsWorld_getScene'", NULL); @@ -152,7 +152,7 @@ int lua_axis_physics_PhysicsWorld_getScene(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getScene", argc, 0); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsWorld_getScene'.", &tolua_err); # endif @@ -166,18 +166,18 @@ int lua_axis_physics_PhysicsWorld_rayCast(lua_State* tolua_S) axis::PhysicsWorld* cobj = nullptr; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsWorld", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsWorld_rayCast'", NULL); @@ -216,7 +216,7 @@ int lua_axis_physics_PhysicsWorld_rayCast(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "rayCast", argc, 4); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsWorld_rayCast'.", &tolua_err); # endif @@ -229,18 +229,18 @@ int lua_axis_physics_PhysicsWorld_queryRect(lua_State* tolua_S) axis::PhysicsWorld* cobj = nullptr; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsWorld", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsWorld_queryRect'", NULL); @@ -276,7 +276,7 @@ int lua_axis_physics_PhysicsWorld_queryRect(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "queryRect", argc, 3); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsWorld_queryRect'.", &tolua_err); # endif @@ -290,18 +290,18 @@ int lua_axis_physics_PhysicsWorld_queryPoint(lua_State* tolua_S) axis::PhysicsWorld* cobj = nullptr; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsWorld", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsWorld_queryPoint'", NULL); @@ -337,7 +337,7 @@ int lua_axis_physics_PhysicsWorld_queryPoint(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "queryPoint", argc, 3); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsWorld_queryPoint'.", &tolua_err); # endif @@ -350,11 +350,11 @@ int lua_axis_physics_PhysicsBody_createPolygon(lua_State* tolua_S) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsBody", 0, &tolua_err)) goto tolua_lerror; # endif @@ -472,7 +472,7 @@ int lua_axis_physics_PhysicsBody_createPolygon(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "createPolygon", argc, 2); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsBody_createPolygon'.", &tolua_err); # endif @@ -484,11 +484,11 @@ int lua_axis_physics_PhysicsBody_createEdgePolygon(lua_State* tolua_S) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsBody", 0, &tolua_err)) goto tolua_lerror; # endif @@ -605,7 +605,7 @@ int lua_axis_physics_PhysicsBody_createEdgePolygon(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "createEdgePolygon", argc, 2); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsBody_createEdgePolygon'.", &tolua_err); # endif @@ -617,11 +617,11 @@ int lua_axis_physics_PhysicsBody_createEdgeChain(lua_State* tolua_S) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsBody", 0, &tolua_err)) goto tolua_lerror; # endif @@ -738,7 +738,7 @@ int lua_axis_physics_PhysicsBody_createEdgeChain(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "createEdgeChain", argc, 2); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsBody_createEdgeChain'.", &tolua_err); # endif @@ -750,11 +750,11 @@ int lua_axis_physics_PhysicsShape_recenterPoints(lua_State* tolua_S) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShape", 0, &tolua_err)) goto tolua_lerror; # endif @@ -810,7 +810,7 @@ int lua_axis_physics_PhysicsShape_recenterPoints(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "recenterPoints", argc, 2); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShape_recenterPoints'.", &tolua_err); # endif @@ -822,11 +822,11 @@ int lua_axis_physics_PhysicsShape_getPolygonCenter(lua_State* tolua_S) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShape", 0, &tolua_err)) goto tolua_lerror; # endif @@ -857,7 +857,7 @@ int lua_axis_physics_PhysicsShape_getPolygonCenter(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "getPolygonCenter", argc, 2); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShape_getPolygonCenter'.", &tolua_err); # endif @@ -869,18 +869,18 @@ int lua_axis_physics_PhysicsShapeBox_getPoints(lua_State* tolua_S) int argc = 0; axis::PhysicsShapeBox* cobj = nullptr; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsShapeBox", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::PhysicsShapeBox*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsShapeBox_getPoints'", NULL); @@ -899,7 +899,7 @@ int lua_axis_physics_PhysicsShapeBox_getPoints(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getPoints", argc, 1); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapeBox_getPoints'.", &tolua_err); # endif @@ -912,18 +912,18 @@ int lua_axis_physics_PhysicsShapePolygon_getPoints(lua_State* tolua_S) int argc = 0; axis::PhysicsShapePolygon* cobj = nullptr; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsShapePolygon", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::PhysicsShapePolygon*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsShapePolygon_getPoints'", NULL); @@ -944,7 +944,7 @@ int lua_axis_physics_PhysicsShapePolygon_getPoints(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getPoints", argc, 1); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapePolygon_getPoints'.", &tolua_err); # endif @@ -957,11 +957,11 @@ int lua_axis_physics_PhysicsShapePolygon_create(lua_State* tolua_S) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShapePolygon", 0, &tolua_err)) goto tolua_lerror; # endif @@ -1046,7 +1046,7 @@ int lua_axis_physics_PhysicsShapePolygon_create(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "create", argc, 2); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapePolygon_create'.", &tolua_err); # endif @@ -1057,11 +1057,11 @@ int lua_axis_physics_PhysicsShapePolygon_calculateArea(lua_State* tolua_S) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShapePolygon", 0, &tolua_err)) goto tolua_lerror; # endif @@ -1092,7 +1092,7 @@ int lua_axis_physics_PhysicsShapePolygon_calculateArea(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "calculateArea", argc, 2); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapePolygon_calculateArea'.", &tolua_err); # endif @@ -1103,11 +1103,11 @@ int lua_axis_physics_PhysicsShapePolygon_calculateMoment(lua_State* tolua_S) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShapePolygon", 0, &tolua_err)) goto tolua_lerror; # endif @@ -1166,7 +1166,7 @@ int lua_axis_physics_PhysicsShapePolygon_calculateMoment(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "calculateMoment", argc, 3); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapePolygon_calculateMoment'.", &tolua_err); # endif @@ -1178,18 +1178,18 @@ int lua_axis_physics_PhysicsShapeEdgeBox_getPoints(lua_State* tolua_S) int argc = 0; axis::PhysicsShapeEdgeBox* cobj = nullptr; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsShapeEdgeBox", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::PhysicsShapeEdgeBox*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsShapeEdgeBox_getPoints'", NULL); @@ -1210,7 +1210,7 @@ int lua_axis_physics_PhysicsShapeEdgeBox_getPoints(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getPoints", argc, 1); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapeEdgeBox_getPoints'.", &tolua_err); # endif @@ -1223,18 +1223,18 @@ int lua_axis_physics_PhysicsShapeEdgePolygon_getPoints(lua_State* tolua_S) int argc = 0; axis::PhysicsShapeEdgePolygon* cobj = nullptr; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsShapeEdgePolygon", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::PhysicsShapeEdgePolygon*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsShapeEdgePolygon_getPoints'", @@ -1256,7 +1256,7 @@ int lua_axis_physics_PhysicsShapeEdgePolygon_getPoints(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getPoints", argc, 1); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapeEdgePolygon_getPoints'.", &tolua_err); # endif @@ -1269,18 +1269,18 @@ int lua_axis_physics_PhysicsShapeEdgeChain_getPoints(lua_State* tolua_S) int argc = 0; axis::PhysicsShapeEdgeChain* cobj = nullptr; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "ax.PhysicsShapeEdgeChain", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::PhysicsShapeEdgeChain*)tolua_tousertype(tolua_S, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_physics_PhysicsShapeEdgeChain_getPoints'", NULL); @@ -1301,7 +1301,7 @@ int lua_axis_physics_PhysicsShapeEdgeChain_getPoints(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "getPoints", argc, 1); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapeEdgeChain_getPoints'.", &tolua_err); # endif @@ -1316,14 +1316,14 @@ static int tolua_axis_EventListenerPhysicsContact_registerScriptHandler(lua_Stat int argc = 0; EventListenerPhysicsContact* self = nullptr; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "ax.EventListenerPhysicsContact", 0, &tolua_err)) goto tolua_lerror; # endif self = static_cast(tolua_tousertype(tolua_S, 1, 0)); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(tolua_S, @@ -1336,7 +1336,7 @@ static int tolua_axis_EventListenerPhysicsContact_registerScriptHandler(lua_Stat if (argc == 2) { -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!toluafix_isfunction(tolua_S, 2, "LUA_FUNCTION", 0, &tolua_err) || !tolua_isnumber(tolua_S, 3, 0, &tolua_err)) { @@ -1412,7 +1412,7 @@ static int tolua_axis_EventListenerPhysicsContact_registerScriptHandler(lua_Stat luaL_error(tolua_S, "'registerScriptHandler' has wrong number of arguments: %d, was expecting %d\n", argc, 2); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'registerScriptHandler'.", &tolua_err); return 0; @@ -1424,11 +1424,11 @@ int lua_axis_physics_PhysicsShapeEdgePolygon_create(lua_State* tolua_S) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShapeEdgePolygon", 0, &tolua_err)) goto tolua_lerror; # endif @@ -1512,7 +1512,7 @@ int lua_axis_physics_PhysicsShapeEdgePolygon_create(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "create", argc, 2); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapeEdgePolygon_create'.", &tolua_err); # endif @@ -1524,11 +1524,11 @@ int lua_axis_physics_PhysicsShapeEdgeChain_create(lua_State* tolua_S) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S, 1, "ax.PhysicsShapeEdgeChain", 0, &tolua_err)) goto tolua_lerror; # endif @@ -1612,7 +1612,7 @@ int lua_axis_physics_PhysicsShapeEdgeChain_create(lua_State* tolua_S) } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "create", argc, 2); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_physics_PhysicsShapeEdgeChain_create'.", &tolua_err); # endif diff --git a/extensions/scripting/lua-bindings/manual/physics3d/lua_axis_physics3d_manual.cpp b/extensions/scripting/lua-bindings/manual/physics3d/lua_axis_physics3d_manual.cpp index 873346690a..b23c20a454 100644 --- a/extensions/scripting/lua-bindings/manual/physics3d/lua_axis_physics3d_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/physics3d/lua_axis_physics3d_manual.cpp @@ -45,7 +45,7 @@ bool luaval_to_Physics3DRigidBodyDes(lua_State* L, tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); # endif ok = false; @@ -115,7 +115,7 @@ bool luaval_to_Physics3DWorld_HitResult(lua_State* L, tolua_Error tolua_err; if (!tolua_istable(L, lo, 0, &tolua_err)) { -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, funcName); # endif ok = false; @@ -191,11 +191,11 @@ int lua_axis_physics3d_PhysicsMeshRenderer_create(lua_State* L) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(L, 1, "ax.PhysicsMeshRenderer", 0, &tolua_err)) goto tolua_lerror; # endif @@ -255,7 +255,7 @@ int lua_axis_physics3d_PhysicsMeshRenderer_create(lua_State* L) } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.PhysicsMeshRenderer:create", argc, 2); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_physics3d_PhysicsMeshRenderer_create'.", &tolua_err); # endif @@ -278,11 +278,11 @@ int lua_axis_physics3d_Physics3DRigidBody_create(lua_State* L) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(L, 1, "ax.Physics3DRigidBody", 0, &tolua_err)) goto tolua_lerror; # endif @@ -304,7 +304,7 @@ int lua_axis_physics3d_Physics3DRigidBody_create(lua_State* L) } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Physics3DRigidBody:create", argc, 1); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DRigidBody_create'.", &tolua_err); # endif @@ -326,11 +326,11 @@ int lua_axis_physics3d_Physics3DComponent_create(lua_State* L) { int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(L, 1, "ax.Physics3DComponent", 0, &tolua_err)) goto tolua_lerror; # endif @@ -419,7 +419,7 @@ int lua_axis_physics3d_Physics3DComponent_create(lua_State* L) ok = true; luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d", "ax.Physics3DComponent:create", argc, 0); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DComponent_create'.", &tolua_err); # endif @@ -443,18 +443,18 @@ int lua_axis_physics3d_Physics3DWorld_rayCast(lua_State* L) axis::Physics3DWorld* cobj = nullptr; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.Physics3DWorld", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::Physics3DWorld*)tolua_tousertype(L, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_physics3d_Physics3DWorld_rayCast'", nullptr); @@ -488,7 +488,7 @@ int lua_axis_physics3d_Physics3DWorld_rayCast(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Physics3DWorld:rayCast", argc, 3); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DWorld_rayCast'.", &tolua_err); # endif @@ -512,11 +512,11 @@ int lua_axis_physics3d_Physics3DShape_createMesh(lua_State* L) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(L, 1, "ax.Physics3DShape", 0, &tolua_err)) goto tolua_lerror; # endif @@ -540,7 +540,7 @@ int lua_axis_physics3d_Physics3DShape_createMesh(lua_State* L) } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Physics3DShape:createMesh", argc, 2); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DShape_createMesh'.", &tolua_err); # endif @@ -552,11 +552,11 @@ int lua_axis_physics3d_Physics3DShape_createHeightfield(lua_State* L) int argc = 0; bool ok = true; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(L, 1, "ax.Physics3DShape", 0, &tolua_err)) goto tolua_lerror; # endif @@ -626,7 +626,7 @@ int lua_axis_physics3d_Physics3DShape_createHeightfield(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Physics3DShape:createHeightfield", argc, 8); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DShape_createHeightfield'.", &tolua_err); # endif @@ -640,7 +640,7 @@ int lua_axis_physics3d_Physics3DShape_createCompoundShape(lua_State* L) tolua_Error tolua_err; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertable(L, 1, "ax.Physics3DShape", 0, &tolua_err)) goto tolua_lerror; # endif @@ -653,7 +653,7 @@ int lua_axis_physics3d_Physics3DShape_createCompoundShape(lua_State* L) std::vector> shapes; if (!tolua_istable(L, 2, 0, &tolua_err)) { -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 luaval_to_native_err(L, "#ferror:", &tolua_err, "ax.Physics3DShape:createCompoundShape"); # endif ok = false; @@ -693,7 +693,7 @@ int lua_axis_physics3d_Physics3DShape_createCompoundShape(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Physics3DShape:createCompoundShape", argc, 1); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DShape_createCompoundShape'.", &tolua_err); # endif @@ -741,18 +741,18 @@ int lua_axis_physics3d_Physics3DObject_setCollisionCallback(lua_State* L) int argc = 0; axis::Physics3DObject* cobj = nullptr; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; # endif -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.Physics3DObject", 0, &tolua_err)) goto tolua_lerror; # endif cobj = (axis::Physics3DObject*)tolua_tousertype(L, 1, 0); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_axis_physics3d_Physics3DObject_setCollisionCallback'", @@ -764,7 +764,7 @@ int lua_axis_physics3d_Physics3DObject_setCollisionCallback(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 1) { -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -823,7 +823,7 @@ int lua_axis_physics3d_Physics3DObject_setCollisionCallback(lua_State* L) "ax.Physics3DObject:setCollisionCallback", argc, 1); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_physics3d_Physics3DObject_setCollisionCallback'.", &tolua_err); # endif diff --git a/extensions/scripting/lua-bindings/manual/spine/lua_axis_spine_manual.cpp b/extensions/scripting/lua-bindings/manual/spine/lua_axis_spine_manual.cpp index ce4833153c..324fc1abe4 100644 --- a/extensions/scripting/lua-bindings/manual/spine/lua_axis_spine_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/spine/lua_axis_spine_manual.cpp @@ -43,7 +43,7 @@ static int lua_axis_CCSkeletonAnimation_createWithFile(lua_State* L) int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(L, 1, "sp.SkeletonAnimation", 0, &tolua_err)) goto tolua_lerror; @@ -53,7 +53,7 @@ static int lua_axis_CCSkeletonAnimation_createWithFile(lua_State* L) if (2 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(L, 2, 0, &tolua_err) || !tolua_isstring(L, 3, 0, &tolua_err)) { goto tolua_lerror; @@ -71,7 +71,7 @@ static int lua_axis_CCSkeletonAnimation_createWithFile(lua_State* L) } else if (3 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(L, 2, 0, &tolua_err) || !tolua_isstring(L, 3, 0, &tolua_err) || !tolua_isnumber(L, 4, 0, &tolua_err)) { @@ -94,7 +94,7 @@ static int lua_axis_CCSkeletonAnimation_createWithFile(lua_State* L) "'createWithFile' function of SkeletonAnimation has wrong number of arguments: %d, was expecting %d\n", argc, 2); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'createWithFile'.", &tolua_err); #endif @@ -330,18 +330,18 @@ static int lua_axis_spine_SkeletonAnimation_addAnimation(lua_State* tolua_S) spine::SkeletonAnimation* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "sp.SkeletonAnimation", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_spine_SkeletonAnimation_addAnimation'", nullptr); @@ -397,7 +397,7 @@ static int lua_axis_spine_SkeletonAnimation_addAnimation(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "addAnimation", argc, 3); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_spine_SkeletonAnimation_addAnimation'.", &tolua_err); #endif @@ -411,18 +411,18 @@ static int lua_axis_spine_SkeletonAnimation_setAnimation(lua_State* tolua_S) spine::SkeletonAnimation* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S, 1, "sp.SkeletonAnimation", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (spine::SkeletonAnimation*)tolua_tousertype(tolua_S, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S, "invalid 'cobj' in function 'lua_axis_spine_SkeletonAnimation_setAnimation'", nullptr); @@ -455,7 +455,7 @@ static int lua_axis_spine_SkeletonAnimation_setAnimation(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "setAnimation", argc, 3); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S, "#ferror in function 'lua_axis_spine_SkeletonAnimation_setAnimation'.", &tolua_err); #endif diff --git a/extensions/scripting/lua-bindings/manual/ui/lua_axis_ui_manual.cpp b/extensions/scripting/lua-bindings/manual/ui/lua_axis_ui_manual.cpp index 861690190f..6a10c5f1ef 100644 --- a/extensions/scripting/lua-bindings/manual/ui/lua_axis_ui_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/ui/lua_axis_ui_manual.cpp @@ -71,7 +71,7 @@ static int lua_axis_Widget_addTouchEventListener(lua_State* L) int argc = 0; Widget* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.Widget", 0, &tolua_err)) goto tolua_lerror; @@ -79,7 +79,7 @@ static int lua_axis_Widget_addTouchEventListener(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Widget_addTouchEventListener'\n", NULL); @@ -91,7 +91,7 @@ static int lua_axis_Widget_addTouchEventListener(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -111,7 +111,7 @@ static int lua_axis_Widget_addTouchEventListener(lua_State* L) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'addTouchEventListener'.", &tolua_err); return 0; @@ -126,7 +126,7 @@ static int lua_axis_Widget_addClickEventListener(lua_State* L) int argc = 0; Widget* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.Widget", 0, &tolua_err)) goto tolua_lerror; @@ -134,7 +134,7 @@ static int lua_axis_Widget_addClickEventListener(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Widget_addClickEventListener'\n", NULL); @@ -146,7 +146,7 @@ static int lua_axis_Widget_addClickEventListener(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -170,7 +170,7 @@ static int lua_axis_Widget_addClickEventListener(lua_State* L) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'addClickEventListener'.", &tolua_err); return 0; @@ -197,7 +197,7 @@ static int lua_axis_CheckBox_addEventListener(lua_State* L) int argc = 0; CheckBox* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.CheckBox", 0, &tolua_err)) goto tolua_lerror; @@ -205,7 +205,7 @@ static int lua_axis_CheckBox_addEventListener(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_CheckBox_addEventListener'\n", NULL); @@ -215,7 +215,7 @@ static int lua_axis_CheckBox_addEventListener(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -234,7 +234,7 @@ static int lua_axis_CheckBox_addEventListener(lua_State* L) 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err); return 0; @@ -260,7 +260,7 @@ static int lua_axis_RadioButton_addEventListener(lua_State* L) int argc = 0; RadioButton* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.RadioButton", 0, &tolua_err)) goto tolua_lerror; @@ -268,7 +268,7 @@ static int lua_axis_RadioButton_addEventListener(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_RadioButton_addEventListener'\n", NULL); @@ -278,7 +278,7 @@ static int lua_axis_RadioButton_addEventListener(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -303,7 +303,7 @@ static int lua_axis_RadioButton_addEventListener(lua_State* L) 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err); return 0; @@ -329,7 +329,7 @@ static int lua_axis_RadioButtonGroup_addEventListener(lua_State* L) int argc = 0; RadioButtonGroup* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.RadioButtonGroup", 0, &tolua_err)) goto tolua_lerror; @@ -337,7 +337,7 @@ static int lua_axis_RadioButtonGroup_addEventListener(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_RadioButtonGroup_addEventListener'\n", NULL); @@ -347,7 +347,7 @@ static int lua_axis_RadioButtonGroup_addEventListener(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -375,7 +375,7 @@ static int lua_axis_RadioButtonGroup_addEventListener(lua_State* L) argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err); return 0; @@ -401,7 +401,7 @@ static int lua_axis_Slider_addEventListener(lua_State* L) int argc = 0; Slider* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.Slider", 0, &tolua_err)) goto tolua_lerror; @@ -409,7 +409,7 @@ static int lua_axis_Slider_addEventListener(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Slider_addEventListener'\n", NULL); @@ -419,7 +419,7 @@ static int lua_axis_Slider_addEventListener(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -439,7 +439,7 @@ static int lua_axis_Slider_addEventListener(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err); return 0; @@ -465,7 +465,7 @@ static int lua_axis_TextField_addEventListener(lua_State* L) int argc = 0; TextField* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.TextField", 0, &tolua_err)) goto tolua_lerror; @@ -473,7 +473,7 @@ static int lua_axis_TextField_addEventListener(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_TextField_addEventListener'\n", NULL); @@ -483,7 +483,7 @@ static int lua_axis_TextField_addEventListener(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -503,7 +503,7 @@ static int lua_axis_TextField_addEventListener(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err); return 0; @@ -529,7 +529,7 @@ static int lua_axis_PageView_addEventListener(lua_State* L) int argc = 0; PageView* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.PageView", 0, &tolua_err)) goto tolua_lerror; @@ -537,7 +537,7 @@ static int lua_axis_PageView_addEventListener(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_PageView_addEventListener'\n", NULL); @@ -547,7 +547,7 @@ static int lua_axis_PageView_addEventListener(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -568,7 +568,7 @@ static int lua_axis_PageView_addEventListener(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err); return 0; @@ -594,7 +594,7 @@ static int lua_axis_ScrollView_addEventListener(lua_State* L) int argc = 0; ScrollView* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.ScrollView", 0, &tolua_err)) goto tolua_lerror; @@ -602,7 +602,7 @@ static int lua_axis_ScrollView_addEventListener(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_ScrollView_addEventListener'\n", NULL); @@ -612,7 +612,7 @@ static int lua_axis_ScrollView_addEventListener(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -632,7 +632,7 @@ static int lua_axis_ScrollView_addEventListener(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err); return 0; @@ -658,7 +658,7 @@ static int lua_axis_ListView_addEventListener(lua_State* L) int argc = 0; ListView* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.ListView", 0, &tolua_err)) goto tolua_lerror; @@ -666,7 +666,7 @@ static int lua_axis_ListView_addEventListener(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_ListView_addEventListener'\n", NULL); @@ -676,7 +676,7 @@ static int lua_axis_ListView_addEventListener(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -698,7 +698,7 @@ static int lua_axis_ListView_addEventListener(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'addEventListener'.", &tolua_err); return 0; @@ -713,7 +713,7 @@ static int lua_axis_ListView_addScrollViewEventListener(lua_State* L) int argc = 0; ListView* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.ListView", 0, &tolua_err)) goto tolua_lerror; @@ -721,7 +721,7 @@ static int lua_axis_ListView_addScrollViewEventListener(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_ListView_addScrollViewEventListener'\n", NULL); @@ -731,7 +731,7 @@ static int lua_axis_ListView_addScrollViewEventListener(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -754,7 +754,7 @@ static int lua_axis_ListView_addScrollViewEventListener(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'addScrollViewEventListener'.", &tolua_err); return 0; @@ -781,7 +781,7 @@ static int lua_axis_LayoutParameter_setMargin(lua_State* L) int argc = 0; LayoutParameter* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.LayoutParameter", 0, &tolua_err)) goto tolua_lerror; @@ -789,7 +789,7 @@ static int lua_axis_LayoutParameter_setMargin(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_LayoutParameter_setMargin'\n", NULL); @@ -800,7 +800,7 @@ static int lua_axis_LayoutParameter_setMargin(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) { goto tolua_lerror; @@ -837,7 +837,7 @@ static int lua_axis_LayoutParameter_setMargin(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'setMargin'.", &tolua_err); return 0; @@ -852,7 +852,7 @@ static int lua_axis_LayoutParameter_getMargin(lua_State* L) int argc = 0; LayoutParameter* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.LayoutParameter", 0, &tolua_err)) goto tolua_lerror; @@ -860,7 +860,7 @@ static int lua_axis_LayoutParameter_getMargin(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_LayoutParameter_getMargin'\n", NULL); @@ -899,7 +899,7 @@ static int lua_axis_LayoutParameter_getMargin(lua_State* L) return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'getMargin'.", &tolua_err); return 0; @@ -926,7 +926,7 @@ static int tolua_cocos2d_EditBox_registerScriptEditBoxHandler(lua_State* L) int argc = 0; EditBox* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.EditBox", 0, &tolua_err)) goto tolua_lerror; @@ -934,7 +934,7 @@ static int tolua_cocos2d_EditBox_registerScriptEditBoxHandler(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'tolua_cocos2d_EditBox_registerScriptEditBoxHandler'\n", NULL); @@ -946,7 +946,7 @@ static int tolua_cocos2d_EditBox_registerScriptEditBoxHandler(lua_State* L) if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -961,7 +961,7 @@ static int tolua_cocos2d_EditBox_registerScriptEditBoxHandler(lua_State* L) "axui.EditBox:registerScriptEditBoxHandler", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'tolua_cocos2d_EditBox_registerScriptEditBoxHandler'.", &tolua_err); return 0; @@ -977,7 +977,7 @@ static int tolua_cocos2d_EditBox_unregisterScriptEditBoxHandler(lua_State* L) int argc = 0; EditBox* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.EditBox", 0, &tolua_err)) goto tolua_lerror; @@ -985,7 +985,7 @@ static int tolua_cocos2d_EditBox_unregisterScriptEditBoxHandler(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'tolua_cocos2d_EditBox_unregisterScriptEditBoxHandler'\n", NULL); @@ -1005,7 +1005,7 @@ static int tolua_cocos2d_EditBox_unregisterScriptEditBoxHandler(lua_State* L) "axui.EditBox:unregisterScriptEditBoxHandler", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'tolua_cocos2d_EditBox_unregisterScriptEditBoxHandler'.", &tolua_err); return 0; @@ -1053,7 +1053,7 @@ static int tolua_axis_EventListenerFocus_create(lua_State* L) return 0; int argc = 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertable(L, 1, "ax.EventListenerFocus", 0, &tolua_err)) goto tolua_lerror; @@ -1077,7 +1077,7 @@ static int tolua_axis_EventListenerFocus_create(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.EventListenerFocus:create", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'tolua_axis_EventListenerFocus_create'.", &tolua_err); return 0; @@ -1119,14 +1119,14 @@ static int tolua_axis_EventListenerFocus_clone(lua_State* L) int argc = 0; EventListenerFocus* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.EventListenerFocus", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'tolua_axis_EventListenerFocus_clone'\n", nullptr); @@ -1154,7 +1154,7 @@ static int tolua_axis_EventListenerFocus_clone(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n", "ax.EventListenerFocus:clone", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'tolua_axis_EventListenerFocus_clone'.", &tolua_err); return 0; @@ -1168,14 +1168,14 @@ static int tolua_axis_EventListenerFocus_registerScriptHandler(lua_State* L) int argc = 0; EventListenerFocus* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "ax.EventListenerFocus", 0, &tolua_err)) goto tolua_lerror; #endif self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'tolua_axis_EventListenerFocus_registerScriptHandler'\n", @@ -1187,7 +1187,7 @@ static int tolua_axis_EventListenerFocus_registerScriptHandler(lua_State* L) if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -1216,7 +1216,7 @@ static int tolua_axis_EventListenerFocus_registerScriptHandler(lua_State* L) "ax.EventListenerFocus:registerScriptHandler", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'tolua_axis_EventListenerFocus_registerScriptHandler'.", &tolua_err); return 0; diff --git a/extensions/scripting/lua-bindings/manual/ui/lua_axis_video_manual.cpp b/extensions/scripting/lua-bindings/manual/ui/lua_axis_video_manual.cpp index 372e3faa71..fca8a2c759 100644 --- a/extensions/scripting/lua-bindings/manual/ui/lua_axis_video_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/ui/lua_axis_video_manual.cpp @@ -36,7 +36,7 @@ static int lua_axis_video_VideoPlayer_addEventListener(lua_State* L) int argc = 0; axis::ui::VideoPlayer* self = nullptr; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.VideoPlayer", 0, &tolua_err)) goto tolua_lerror; @@ -44,7 +44,7 @@ static int lua_axis_video_VideoPlayer_addEventListener(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_Widget_addTouchEventListener'\n", nullptr); @@ -56,7 +56,7 @@ static int lua_axis_video_VideoPlayer_addEventListener(lua_State* L) if (argc == 1) { -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -79,7 +79,7 @@ static int lua_axis_video_VideoPlayer_addEventListener(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.VideoPlayer:addEventListener", argc, 0); return 0; -# if COCOS2D_DEBUG >= 1 +# if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_VideoPlayer_addEventListener'.", &tolua_err); # endif diff --git a/extensions/scripting/lua-bindings/manual/ui/lua_axis_webview_manual.cpp b/extensions/scripting/lua-bindings/manual/ui/lua_axis_webview_manual.cpp index 493a0cfd7b..cb5f324822 100644 --- a/extensions/scripting/lua-bindings/manual/ui/lua_axis_webview_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/ui/lua_axis_webview_manual.cpp @@ -35,7 +35,7 @@ static int lua_axis_WebView_setOnShouldStartLoading(lua_State* L) int argc = 0; axis::ui::WebView* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.WebView", 0, &tolua_err)) goto tolua_lerror; @@ -43,7 +43,7 @@ static int lua_axis_WebView_setOnShouldStartLoading(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_WebView_setOnShouldStartLoading'\n", nullptr); @@ -55,7 +55,7 @@ static int lua_axis_WebView_setOnShouldStartLoading(lua_State* L) if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -78,7 +78,7 @@ static int lua_axis_WebView_setOnShouldStartLoading(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.WebView:setOnShouldStartLoading", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_WebView_setOnShouldStartLoading'.", &tolua_err); #endif @@ -91,7 +91,7 @@ static int lua_axis_WebView_setOnDidFinishLoading(lua_State* L) int argc = 0; axis::ui::WebView* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.WebView", 0, &tolua_err)) goto tolua_lerror; @@ -99,7 +99,7 @@ static int lua_axis_WebView_setOnDidFinishLoading(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_WebView_setOnDidFinishLoading'\n", nullptr); @@ -111,7 +111,7 @@ static int lua_axis_WebView_setOnDidFinishLoading(lua_State* L) if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -133,7 +133,7 @@ static int lua_axis_WebView_setOnDidFinishLoading(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.WebView:setOnDidFinishLoading", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_WebView_setOnDidFinishLoading'.", &tolua_err); #endif @@ -146,7 +146,7 @@ static int lua_axis_WebView_setOnDidFailLoading(lua_State* L) int argc = 0; axis::ui::WebView* self = nullptr; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(L, 1, "axui.WebView", 0, &tolua_err)) goto tolua_lerror; @@ -154,7 +154,7 @@ static int lua_axis_WebView_setOnDidFailLoading(lua_State* L) self = static_cast(tolua_tousertype(L, 1, 0)); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (nullptr == self) { tolua_error(L, "invalid 'self' in function 'lua_axis_WebView_setOnDidFailLoading'\n", nullptr); @@ -166,7 +166,7 @@ static int lua_axis_WebView_setOnDidFailLoading(lua_State* L) if (argc == 1) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!toluafix_isfunction(L, 2, "LUA_FUNCTION", 0, &tolua_err)) { goto tolua_lerror; @@ -188,7 +188,7 @@ static int lua_axis_WebView_setOnDidFailLoading(lua_State* L) luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.WebView:setOnDidFailLoading", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_axis_WebView_setOnDidFailLoading'.", &tolua_err); #endif diff --git a/tests/cpp-tests/Classes/AppDelegate.cpp b/tests/cpp-tests/Classes/AppDelegate.cpp index e3fe4149e3..8e26e86822 100644 --- a/tests/cpp-tests/Classes/AppDelegate.cpp +++ b/tests/cpp-tests/Classes/AppDelegate.cpp @@ -36,9 +36,9 @@ USING_NS_AX; // Enable log on Debug version #ifndef NDEBUG -# define COCOS2D_DEBUG 1 +# define AXIS_DEBUG 1 #else -# define COCOS2D_DEBUG 0 +# define AXIS_DEBUG 0 #endif AppDelegate::AppDelegate() : _testController(nullptr) {} diff --git a/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.cpp b/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.cpp index 0f18f43b8d..95f5226c3a 100644 --- a/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.cpp +++ b/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.cpp @@ -512,7 +512,7 @@ void ScrollViewDemo::onTouchesEnded(const std::vector& touches, Event* e // RawStencilBufferTests -//#if COCOS2D_DEBUG > 1 +//#if AXIS_DEBUG > 1 static const float _alphaThreshold = 0.05f; @@ -809,7 +809,7 @@ void RawStencilBufferTest6::setupStencilForDrawingOnPlane(int plane) RawStencilBufferTest::setupStencilForDrawingOnPlane(plane); } -//#endif // COCOS2D_DEBUG > 1 +//#endif // AXIS_DEBUG > 1 // ClippingToRenderTextureTest diff --git a/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.h b/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.h index 3bcc11319a..cb079001fa 100644 --- a/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.h +++ b/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.h @@ -168,7 +168,7 @@ private: axis::Vec2 _lastPoint; }; -//#if COCOS2D_DEBUG > 1 +//#if AXIS_DEBUG > 1 class RawStencilBufferTest : public BaseClippingNodeTest { @@ -261,7 +261,7 @@ public: virtual std::string subtitle() const override; }; -//#endif //COCOS2D_DEBUG > 1 +//#endif //AXIS_DEBUG > 1 class ClippingToRenderTextureTest : public BaseClippingNodeTest { diff --git a/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp b/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp index be2c103215..6147f671bb 100644 --- a/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp +++ b/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp @@ -1571,7 +1571,7 @@ private: DanglingNodePointersTest::DanglingNodePointersTest() { -#if AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS == 1 && COCOS2D_DEBUG > 0 +#if AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS == 1 && AXIS_DEBUG > 0 Vec2 origin = Director::getInstance()->getVisibleOrigin(); Size size = Director::getInstance()->getVisibleSize(); @@ -1619,11 +1619,11 @@ std::string DanglingNodePointersTest::title() const std::string DanglingNodePointersTest::subtitle() const { -#if AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS == 1 && COCOS2D_DEBUG > 0 +#if AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS == 1 && AXIS_DEBUG > 0 return "Tap the square - should not crash!"; #else return "For test to work, must be compiled with:\n" - "AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS == 1\n&& COCOS2D_DEBUG > 0"; + "AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS == 1\n&& AXIS_DEBUG > 0"; #endif } diff --git a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp index 8c285606f7..1001d5070a 100644 --- a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp +++ b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp @@ -573,7 +573,7 @@ std::string SpriteCreation::title() const std::string SpriteCreation::subtitle() const { -#if defined(COCOS2D_DEBUG) && COCOS2D_DEBUG == 1 +#if defined(AXIS_DEBUG) && AXIS_DEBUG == 1 return "In debug mode"; #else return "In release mode"; @@ -1068,7 +1068,7 @@ std::string NonBatchSprites::title() const std::string NonBatchSprites::subtitle() const { -#if defined(COCOS2D_DEBUG) && COCOS2D_DEBUG == 1 +#if defined(AXIS_DEBUG) && AXIS_DEBUG == 1 return "DEBUG: simulate lots of sprites, drop to 30 fps"; #else return "RELEASE: simulate lots of sprites, drop to 30 fps"; diff --git a/tests/cpp-tests/Classes/SpineTest/SpineTest.cpp b/tests/cpp-tests/Classes/SpineTest/SpineTest.cpp index bf3fb12ea3..04fe2cd546 100644 --- a/tests/cpp-tests/Classes/SpineTest/SpineTest.cpp +++ b/tests/cpp-tests/Classes/SpineTest/SpineTest.cpp @@ -72,7 +72,7 @@ SpineTests::SpineTests() ADD_TEST_CASE(SpineboyExample); ADD_TEST_CASE(TankExample); -#ifdef COCOS2D_DEBUG +#ifdef AXIS_DEBUG debugExtension = new DebugExtension(SpineExtension::getInstance()); #endif } @@ -82,7 +82,7 @@ SpineTests::~SpineTests() FileUtils::getInstance()->setSearchPaths(_searchPaths); SkeletonBatch::destroyInstance(); SkeletonTwoColorBatch::destroyInstance(); -#ifdef COCOS2D_DEBUG +#ifdef AXIS_DEBUG debugExtension->reportLeaks(); delete debugExtension; #endif diff --git a/tests/cpp-tests/Classes/SpineTest/SpineTest.h b/tests/cpp-tests/Classes/SpineTest/SpineTest.h index f21d591bab..1b0582d443 100644 --- a/tests/cpp-tests/Classes/SpineTest/SpineTest.h +++ b/tests/cpp-tests/Classes/SpineTest/SpineTest.h @@ -30,7 +30,7 @@ #include "../BaseTest.h" #include -#ifdef COCOS2D_DEBUG +#ifdef AXIS_DEBUG # include #endif @@ -45,7 +45,7 @@ public: private: std::vector _searchPaths; -#ifdef COCOS2D_DEBUG +#ifdef AXIS_DEBUG spine::DebugExtension* debugExtension = nullptr; #endif }; diff --git a/tests/lua-tests/project/Classes/lua_assetsmanager_test_sample.cpp b/tests/lua-tests/project/Classes/lua_assetsmanager_test_sample.cpp index 667170f1f2..f44b414d25 100644 --- a/tests/lua-tests/project/Classes/lua_assetsmanager_test_sample.cpp +++ b/tests/lua-tests/project/Classes/lua_assetsmanager_test_sample.cpp @@ -78,13 +78,13 @@ static int lua_cocos2dx_deleteDownloadDir(lua_State* L) int argc = lua_gettop(L); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (1 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(L, 1, 0, &tolua_err)) goto tolua_lerror; #endif @@ -103,7 +103,7 @@ static int lua_cocos2dx_deleteDownloadDir(lua_State* L) AXLOG("'resetDownloadDir' function wrong number of arguments: %d, was expecting %d\n", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'resetDownloadDir'.", &tolua_err); return 0; @@ -117,13 +117,13 @@ static int lua_cocos2dx_addSearchPath(lua_State* L) int argc = lua_gettop(L); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif if (2 == argc) { -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isstring(L, 1, 0, &tolua_err) || !tolua_isboolean(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -135,7 +135,7 @@ static int lua_cocos2dx_addSearchPath(lua_State* L) AXLOG("'addSearchPath' function wrong number of arguments: %d, was expecting %d\n", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'addSearchPath'.", &tolua_err); return 0; diff --git a/tests/lua-tests/project/Classes/lua_test_bindings.cpp b/tests/lua-tests/project/Classes/lua_test_bindings.cpp index 260ce65393..37bfeb80e9 100644 --- a/tests/lua-tests/project/Classes/lua_test_bindings.cpp +++ b/tests/lua-tests/project/Classes/lua_test_bindings.cpp @@ -337,18 +337,18 @@ int lua_cocos2dx_DrawNode3D_getBlendFunc(lua_State* L) axis::DrawNode3D* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.DrawNode3D", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_cocos2dx_DrawNode3D_getBlendFunc'", nullptr); @@ -368,7 +368,7 @@ int lua_cocos2dx_DrawNode3D_getBlendFunc(lua_State* L) AXLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode3D:getBlendFunc", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_cocos2dx_DrawNode3D_getBlendFunc'.", &tolua_err); #endif @@ -382,18 +382,18 @@ int lua_cocos2dx_DrawNode3D_setBlendFunc(lua_State* L) axis::DrawNode3D* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.DrawNode3D", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_cocos2dx_DrawNode3D_setBlendFunc'", nullptr); @@ -419,7 +419,7 @@ int lua_cocos2dx_DrawNode3D_setBlendFunc(lua_State* L) AXLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode3D:setBlendFunc", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_cocos2dx_DrawNode3D_setBlendFunc'.", &tolua_err); #endif @@ -433,18 +433,18 @@ int lua_cocos2dx_DrawNode3D_drawLine(lua_State* L) axis::DrawNode3D* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.DrawNode3D", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_cocos2dx_DrawNode3D_drawLine'", nullptr); @@ -472,7 +472,7 @@ int lua_cocos2dx_DrawNode3D_drawLine(lua_State* L) AXLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode3D:drawLine", argc, 3); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_cocos2dx_DrawNode3D_drawLine'.", &tolua_err); #endif @@ -486,18 +486,18 @@ int lua_cocos2dx_DrawNode3D_clear(lua_State* L) axis::DrawNode3D* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.DrawNode3D", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_cocos2dx_DrawNode3D_clear'", nullptr); @@ -516,7 +516,7 @@ int lua_cocos2dx_DrawNode3D_clear(lua_State* L) AXLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode3D:clear", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_cocos2dx_DrawNode3D_clear'.", &tolua_err); #endif @@ -530,18 +530,18 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L) axis::DrawNode3D* cobj = nullptr; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertype(L, 1, "ax.DrawNode3D", 0, &tolua_err)) goto tolua_lerror; #endif cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(L, "invalid 'cobj' in function 'lua_cocos2dx_DrawNode3D_drawCube'", nullptr); @@ -555,7 +555,7 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L) std::vector arg0; axis::Color4F arg1; Vec3 vec3; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) goto tolua_lerror; #endif @@ -564,7 +564,7 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L) { lua_pushnumber(L, i + 1); lua_gettable(L, 2); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_istable(L, -1, 0, &tolua_err)) { lua_pop(L, 1); @@ -573,7 +573,7 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L) #endif ok &= luaval_to_vec3(L, lua_gettop(L), &vec3); -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!ok) { lua_pop(L, 1); @@ -594,7 +594,7 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L) AXLOG("%s has wrong number of arguments: %d, was expecting %d \n", "ax.DrawNode3D:drawCube", argc, 2); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_cocos2dx_DrawNode3D_drawCube'.", &tolua_err); #endif @@ -607,11 +607,11 @@ int lua_cocos2dx_DrawNode3D_create(lua_State* L) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(L, 1, "ax.DrawNode3D", 0, &tolua_err)) goto tolua_lerror; #endif @@ -628,7 +628,7 @@ int lua_cocos2dx_DrawNode3D_create(lua_State* L) } AXLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "ax.DrawNode3D:create", argc, 0); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_cocos2dx_DrawNode3D_create'.", &tolua_err); #endif @@ -658,11 +658,11 @@ int lua_cocos2dx_ValueTypeJudgeInTable_create(lua_State* L) int argc = 0; bool ok = true; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_Error tolua_err; #endif -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 if (!tolua_isusertable(L, 1, "ax.ValueTypeJudgeInTable", 0, &tolua_err)) goto tolua_lerror; #endif @@ -682,7 +682,7 @@ int lua_cocos2dx_ValueTypeJudgeInTable_create(lua_State* L) } AXLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "ax.ValueTypeJudgeInTable:create", argc, 1); return 0; -#if COCOS2D_DEBUG >= 1 +#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(L, "#ferror in function 'lua_cocos2dx_ValueTypeJudgeInTable_create'.", &tolua_err); #endif diff --git a/tools/bindings-generator/targets/lua/templates/ifunction.c b/tools/bindings-generator/targets/lua/templates/ifunction.c index 32e256540c..dac3f95fe0 100644 --- a/tools/bindings-generator/targets/lua/templates/ifunction.c +++ b/tools/bindings-generator/targets/lua/templates/ifunction.c @@ -5,19 +5,19 @@ int ${signature_name}(lua_State* tolua_S) ${namespaced_class_name}* cobj = nullptr; bool ok = true; -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 tolua_Error tolua_err; \#endif #if not $is_constructor -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}",0,&tolua_err)) goto tolua_lerror; \#endif cobj = (${namespaced_class_name}*)tolua_tousertype(tolua_S,1,0); -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function '${signature_name}'", nullptr); @@ -113,7 +113,7 @@ int ${signature_name}(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}:${func_name}",argc, ${min_args}); return 0; -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 #if not $is_constructor tolua_lerror: #end if diff --git a/tools/bindings-generator/targets/lua/templates/ifunction_overloaded.c b/tools/bindings-generator/targets/lua/templates/ifunction_overloaded.c index ade352e24b..cd0336f84c 100644 --- a/tools/bindings-generator/targets/lua/templates/ifunction_overloaded.c +++ b/tools/bindings-generator/targets/lua/templates/ifunction_overloaded.c @@ -4,16 +4,16 @@ int ${signature_name}(lua_State* tolua_S) int argc = 0; ${namespaced_class_name}* cobj = nullptr; bool ok = true; -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 tolua_Error tolua_err; \#endif #if not $is_constructor -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}",0,&tolua_err)) goto tolua_lerror; \#endif cobj = (${namespaced_class_name}*)tolua_tousertype(tolua_S,1,0); -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function '${signature_name}'", nullptr); @@ -105,7 +105,7 @@ int ${signature_name}(lua_State* tolua_S) luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}:${func.func_name}",argc, ${func.min_args}); return 0; -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 #if not $is_constructor tolua_lerror: #end if diff --git a/tools/bindings-generator/targets/lua/templates/public_field.c b/tools/bindings-generator/targets/lua/templates/public_field.c index 33daeceb3d..7860cb8b59 100644 --- a/tools/bindings-generator/targets/lua/templates/public_field.c +++ b/tools/bindings-generator/targets/lua/templates/public_field.c @@ -2,14 +2,14 @@ int ${signature_name}_get${name}(lua_State* tolua_S) { ${namespaced_class_name}* cobj = nullptr; -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S,1,"${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}",0,&tolua_err)) goto tolua_lerror; \#endif cobj = (${namespaced_class_name}*)tolua_tousertype(tolua_S,1,0); -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function '${signature_name}_get${name}'", nullptr); @@ -36,7 +36,7 @@ int ${signature_name}_get${name}(lua_State* tolua_S) #end if return 1; -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function '${signature_name}_get${name}'.",&tolua_err); return 0; @@ -49,14 +49,14 @@ int ${signature_name}_set${name}(lua_State* tolua_S) ${namespaced_class_name}* cobj = nullptr; bool ok = true; -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S,1,"${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}",0,&tolua_err)) goto tolua_lerror; \#endif cobj = (${namespaced_class_name}*)tolua_tousertype(tolua_S,1,0); -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function '${signature_name}_set${name}'", nullptr); @@ -92,7 +92,7 @@ int ${signature_name}_set${name}(lua_State* tolua_S) AXLOG("%s has wrong number of arguments: %d, was expecting %d \n", "${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}:${name}",argc, 1); return 0; -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function '${signature_name}_get${name}'.",&tolua_err); return 0; diff --git a/tools/bindings-generator/targets/lua/templates/register.c b/tools/bindings-generator/targets/lua/templates/register.c index 84f4084b74..d8ce15bee6 100644 --- a/tools/bindings-generator/targets/lua/templates/register.c +++ b/tools/bindings-generator/targets/lua/templates/register.c @@ -12,7 +12,7 @@ static int lua_${generator.prefix}_${current_class.class_name}_finalize(lua_Stat { printf("luabindings: finalizing LUA object (${current_class.class_name})"); #if $generator.script_control_cpp -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 tolua_Error tolua_err; if ( !tolua_isusertype(tolua_S,1,"${current_class.class_name}",0,&tolua_err) || @@ -23,13 +23,13 @@ static int lua_${generator.prefix}_${current_class.class_name}_finalize(lua_Stat \#endif { ${current_class.namespaced_class_name}* self = (${current_class.namespaced_class_name}*) tolua_tousertype(tolua_S,1,0); -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", nullptr); \#endif delete self; } return 0; -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err); return 0; diff --git a/tools/bindings-generator/targets/lua/templates/sfunction.c b/tools/bindings-generator/targets/lua/templates/sfunction.c index 97660d5b20..3d025d56c8 100644 --- a/tools/bindings-generator/targets/lua/templates/sfunction.c +++ b/tools/bindings-generator/targets/lua/templates/sfunction.c @@ -4,11 +4,11 @@ int ${signature_name}(lua_State* tolua_S) int argc = 0; bool ok = true; -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 tolua_Error tolua_err; \#endif -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}",0,&tolua_err)) goto tolua_lerror; \#endif @@ -79,7 +79,7 @@ int ${signature_name}(lua_State* tolua_S) #end if luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}:${func_name}",argc, ${min_args}); return 0; -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function '${signature_name}'.",&tolua_err); \#endif diff --git a/tools/bindings-generator/targets/lua/templates/sfunction_overloaded.c b/tools/bindings-generator/targets/lua/templates/sfunction_overloaded.c index eb1b92544c..1234b1884e 100644 --- a/tools/bindings-generator/targets/lua/templates/sfunction_overloaded.c +++ b/tools/bindings-generator/targets/lua/templates/sfunction_overloaded.c @@ -3,11 +3,11 @@ int ${signature_name}(lua_State* tolua_S) { int argc = 0; bool ok = true; -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 tolua_Error tolua_err; \#endif -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"${generator.scriptname_from_native($namespaced_class_name,$namespace_name)}",0,&tolua_err)) goto tolua_lerror; \#endif @@ -75,7 +75,7 @@ int ${signature_name}(lua_State* tolua_S) #end for luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "${generator.scriptname_from_native($namespaced_class_name, $namespace_name)}:${func.func_name}",argc, ${func.min_args}); return 0; -\#if COCOS2D_DEBUG >= 1 +\#if AXIS_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function '${signature_name}'.",&tolua_err); \#endif diff --git a/tools/console/plugins/plugin_generate/gen_simulator.py b/tools/console/plugins/plugin_generate/gen_simulator.py index 5666a2afd2..8ee87e42b1 100644 --- a/tools/console/plugins/plugin_generate/gen_simulator.py +++ b/tools/console/plugins/plugin_generate/gen_simulator.py @@ -161,13 +161,13 @@ class SimulatorCompiler(axis.CCPlugin): def get_keywords(self): osx_keyword = { - "AX_TARGET_OS_IPHONE,":"AX_TARGET_OS_IPHONE,\n\"COCOS2D_DEBUG=1\",", - "AX_TARGET_OS_MAC,":"AX_TARGET_OS_MAC,\n\"COCOS2D_DEBUG=1\",", - "COCOS2D_DEBUG=0":"COCOS2D_DEBUG=1", + "AX_TARGET_OS_IPHONE,":"AX_TARGET_OS_IPHONE,\n\"AXIS_DEBUG=1\",", + "AX_TARGET_OS_MAC,":"AX_TARGET_OS_MAC,\n\"AXIS_DEBUG=1\",", + "AXIS_DEBUG=0":"AXIS_DEBUG=1", } win_keyword = { - "_WINDOWS":"_WINDOWS;COCOS2D_DEBUG=1", + "_WINDOWS":"_WINDOWS;AXIS_DEBUG=1", } if axis.os_is_mac(): diff --git a/tools/console/plugins/plugin_generate/modify_template.py b/tools/console/plugins/plugin_generate/modify_template.py index e6a02b3c43..c5d93b8713 100644 --- a/tools/console/plugins/plugin_generate/modify_template.py +++ b/tools/console/plugins/plugin_generate/modify_template.py @@ -199,7 +199,7 @@ class TemplateModifier(object): file_content = f.read() f.close() - file_content = file_content.replace("#ifndef _DEBUG", "#ifndef COCOS2D_DEBUG") + file_content = file_content.replace("#ifndef _DEBUG", "#ifndef AXIS_DEBUG") f = open(cpp_path, "w") f.write(file_content) f.close()