Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile warning and update the bindings-generator submodule for auto skipping the functions which can’t be parsed correctly #7317

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cocos/scripting/lua-bindings/manual/LuaBasicConversions.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ extern bool luaval_to_ttfconfig(lua_State* L, int lo, cocos2d::TTFConfig* outVal
extern bool luaval_to_uniform(lua_State* L, int lo, cocos2d::Uniform* outValue);
extern bool luaval_to_vertexattrib(lua_State* L, int lo, cocos2d::VertexAttrib* outValue);

CC_DEPRECATED_ATTRIBUTE static inline bool luaval_to_point(lua_State* L,int lo,cocos2d::Vec2* outValue)
static inline bool luaval_to_point(lua_State* L,int lo,cocos2d::Point* outValue)
{
return luaval_to_vec2(L, lo, outValue);
}
Expand All @@ -88,7 +88,7 @@ CC_DEPRECATED_ATTRIBUTE static inline bool luaval_to_kmMat4(lua_State* L, int lo
{
return luaval_to_mat4(L, lo, outValue);
}
CC_DEPRECATED_ATTRIBUTE static inline bool luaval_to_array_of_Point(lua_State* L,int lo,cocos2d::Vec2 **points, int *numPoints)
static inline bool luaval_to_array_of_Point(lua_State* L,int lo,cocos2d::Point **points, int *numPoints)
{
return luaval_to_array_of_vec2(L, lo, points, numPoints);
}
Expand Down Expand Up @@ -258,12 +258,12 @@ extern void ttfconfig_to_luaval(lua_State* L, const cocos2d::TTFConfig& config);
extern void uniform_to_luaval(lua_State* L, const cocos2d::Uniform& uniform);
extern void vertexattrib_to_luaval(lua_State* L, const cocos2d::VertexAttrib& verAttrib);

CC_DEPRECATED_ATTRIBUTE static inline void point_to_luaval(lua_State* L,const cocos2d::Vec2& pt)
static inline void point_to_luaval(lua_State* L,const cocos2d::Point& pt)
{
vec2_to_luaval(L, pt);
}

CC_DEPRECATED_ATTRIBUTE static inline void points_to_luaval(lua_State* L,const cocos2d::Vec2* points, int count)
static inline void points_to_luaval(lua_State* L,const cocos2d::Point* points, int count)
{
vec2_array_to_luaval(L, points, count);
}
Expand Down
2 changes: 1 addition & 1 deletion tools/bindings-generator
Submodule bindings-generator updated 1 files
+64 −0 generator.py