mono / gir-sharp

C# binding generator for GIR format
MIT License
12 stars 10 forks source link

Refactor writer #43

Closed Therzok closed 6 years ago

Therzok commented 6 years ago

Yeah, I know, I added those so marshalling can see it for now. We will have to have some kind of fixer at generator level that maps varargs to something known (i.e. what old gen has).

So, my initial idea was to crawl through generatables, look at all member generatables which have Varargs, and expand them into specific methods.

So Varargs will have an: List<Parameter>[] attachment in metadata and for each method which takes a varargs, generate an expansion method.

__arglist only works on .NET Framework on windows, so these are the option

Therzok commented 6 years ago

I'm trying to make the generator do a lot of the manual work we used to do, i.e. be able to generate GObject and GList by itself.