Closed aljelly closed 4 years ago
Yeah, StaticArray
seems like a sane option, but I'm not sure. First case I see for this and it's a null pointer, so not super insightful into how this would work for actual values. Pretty useless constant really. There's also an array type enum to this, so we probably have to flesh this out a lot more. But for now it should compile and hopefully not crash when you reference the constant.
This typelib also has a lot of unresolved references (references to types not included into it or any dependencies), which I had to add handling for in a place or two, so no promises yet :P
There's an array constant in this class (Granite-1.0.gir):
Which results in:
I tried making it at least compile:
And it works (now the bindings at least generate), but this probably isn't how it should be handled. I don't know enough about GIRs or C.
StaticArray
?(Granite source is here, relevant line seems to be this)