Stephan Guilloux
Stephan Guilloux
I was about to raise another issue for the same, and I have the same question. Any plan to implement this ? Maybe with some help ?
> But I doubt that these two variants may be used as general solution. Maybe not. But, in case, a `CppQStringList` could help, like it's done for CppVariant or others....
I mean ... I saw a couple of `debug!()` in flapigen code itself. How to use this ? Is there any 'debug' log file ?
OK. Thx. Found it. For those who will read this, in my `build.rs`: ``` fn main() { env_logger::init(); debug!("Stephan's log sample"); debug!("Stephan's log sample"); // twice ! debug!("Another log exmple");...
Agreed for the enum returned by C. The current C++ implemantation is rather similar to what could be done for C : ``` enum FOO { FOO_xxx = 0, FOO_yyy...
At least, this solves the situation where a RUST function returns an Error : ``` fn MyRustFunction() -> Error {...} ``` and the C code performs a switch ... case...
Hmm ... I may need some guidance, to write some test case(s), if you don't mind, for a PR.
OK. Thx. I'll have a look this afternoon.
From glue.rs.in code below : ``` foreign_enum!( enum SomeEnum { Val1 = SomeEnum::Val1, Val2 = SomeEnum::Val2, Val3 = SomeEnum::Val3, } ); foreign_class!(class Foo { fn return_is_enum() -> SomeEnum; fn param_is_enum(e:...
See PULL REQUEST #59.