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

Add indication of auto-generation to generated bindings #837

Open
just-ero opened this issue Aug 28, 2024 · 0 comments
Open

Add indication of auto-generation to generated bindings #837

just-ero opened this issue Aug 28, 2024 · 0 comments

Comments

@just-ero
Copy link
Contributor

just-ero commented Aug 28, 2024

Description

This is mainly for the C# bindings; warnings are reported in the file due to style inconsistencies. Of course, we can't (or shouldn't) edit LiveSplitCore.cs directly. To suppress warnings in the file, I suggest adding something like this to the generated file:

//---------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     livesplit-core v0.13.0
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//---------------------------------------------------------------------------

This is consistent with other .NET source code generators. The <auto-generated /> element suppresses all warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant