Open FraMecca opened 4 years ago
I don't know about this one as a while since I looked at. But i figured out what problematic macros were doing and then just rewrote the code inline or as a template - don't quite remember but a working trivial example of caml calling D is up on code.dlang.org I think. I didn't take it any further.
AST to AST translation for C to D would be nice. It's not that bad although quite a lot of work. See c2rust
Macros are... hard. In this case there's two issues: one is the non-standard __attribute__((unused))
that causes the original error, but even removing it manually causes another issue which is that the CALxparam1
macro uses the result of a comma expression, which is now illegal in D. I don't think this is fixable.