bindgen
bindgen copied to clipboard
Binding and wrapper generator for C/C++ libraries
Hi, sorry, If this is a noob question. I'm trying to bind to a library, which uses chromes v8 base. The class, which is causing me problems is: `scoped_refptr` can...
Adds support for C array types, i.e. `int [4][3][2]`. It is not to be confused with `std::array`. * [x] Allow `StaticArray` members in `lib struct`s generated by `copy_structure: true`. Multi-dimensional...
Hey @Papierkorb , @HertzDevil , it would be really nice if we planned to rebuild the Qt bindings for various versions roughly in sync with Crystal's 1.0 release. @HertzDevil do...
Seems aliasing is broken, unsure when it broke, but it should be reproducible with the container spec. ``` $ crystal spec spec/integration/containers_spec.cr + rm -f '*.o' containers.cpp containers_test.cr Invalid alias...
Currently, all instantiated containers must be referred to using their mangled names. This PR provides two ways to name those wrapper types: * `Container(T)`: A module which contains no code....
Currently, Bindgen doesn't support nested anonymous types at all: ```cpp struct T { struct { int x, y; } point; struct { float u, v; }; }; ``` ```yaml classes:...
In Crystal every class must be defined after all of its base classes, but #83 now permits certain class hierarchies that cannot be realized by the current Bindgen generators, because...
Previously we discussed the possibility of recovering Crystal wrapper instances/types from their `@unwrap` pointers, but it turns out that only solves part of the marshalling problem; if there wasn't a...
Today I started receiving this error in Bindgen after performing a system update which bumps my libgc's version to 8.0.4: ``` /usr/bin/ld: ... /spec/integration/tmp/../tmp/instance_properties.o: in function `operator new(unsigned long, GCPlacement,...
Consider these snippets: ```cpp struct Inner { Inner(int x) : x(x) { } int x; // other members }; struct Outer { static Outer *new_no_gc() { return new Outer; }...