-
Notifications
You must be signed in to change notification settings - Fork 28
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
Optimize code to allow trimming / native aot #975
Comments
Hello @badcel Great news! I made Gtk4 into C# with modern function pointer ( Example:
But It is still working in process with Gtk4 :) And I want to tell about GObject will to be as They should to know I hope I can complete Gtk4 then I will release my complete Gtk4 in C#. Woohoo! It works fine :D |
Great that it works. In general I think unsafe code should only be used in areas where it makes sense to allow native aot to work. Making the whole internal namespace completely unsafe is probably not the way to go. If you want to help out you could create a small test program which creates a new GObject (I think you need to derive from GObject.Object to use this constructor) and compile this program into native code and see what it is complaining about. |
Optimize code to allow trimming / native AOT:
A first step is probably to enable analyzers and fix the resulting warnings, like @kant2002 mentioned in #468 (comment)
Probably depends on #698.
The text was updated successfully, but these errors were encountered: