Skip to content

Commit

Permalink
Update libclang to 19.x for binding generator
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Dec 20, 2024
1 parent c065a70 commit f305389
Show file tree
Hide file tree
Showing 13 changed files with 11,365 additions and 24,336 deletions.
29 changes: 29 additions & 0 deletions extensions/scripting/lua-bindings/auto/axlua_backend_auto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ int lua_register_ax_backend_VertexFormat(lua_State* tolua_S)
tolua_constant(tolua_S, "USHORT4", 8);
tolua_constant(tolua_S, "USHORT2", 9);
tolua_constant(tolua_S, "UBYTE4", 10);
tolua_constant(tolua_S, "MAT4", 11);
tolua_endmodule(tolua_S);

auto typeName = typeid(ax::backend::VertexFormat).name(); // rtti is literal storage
Expand Down Expand Up @@ -979,6 +980,20 @@ int lua_ax_backend_Program_getVertexLayout(lua_State* tolua_S)
object_to_luaval<ax::backend::VertexLayout>(tolua_S, "axb.VertexLayout",(ax::backend::VertexLayout*)ret);
return 1;
}
if (argc == 1)
{
bool arg0;

ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axb.Program:getVertexLayout");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getVertexLayout'", nullptr);
return 0;
}
auto&& ret = cobj->getVertexLayout(arg0);
object_to_luaval<ax::backend::VertexLayout>(tolua_S, "axb.VertexLayout",(ax::backend::VertexLayout*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getVertexLayout",argc, 0);
return 0;

Expand Down Expand Up @@ -1582,6 +1597,20 @@ int lua_ax_backend_ProgramState_getMutableVertexLayout(lua_State* tolua_S)
object_to_luaval<ax::backend::VertexLayout>(tolua_S, "axb.VertexLayout",(ax::backend::VertexLayout*)ret);
return 1;
}
if (argc == 1)
{
bool arg0;

ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axb.ProgramState:getMutableVertexLayout");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_ProgramState_getMutableVertexLayout'", nullptr);
return 0;
}
auto&& ret = cobj->getMutableVertexLayout(arg0);
object_to_luaval<ax::backend::VertexLayout>(tolua_S, "axb.VertexLayout",(ax::backend::VertexLayout*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:getMutableVertexLayout",argc, 0);
return 0;

Expand Down
Loading

0 comments on commit f305389

Please sign in to comment.