Replies: 1 comment 3 replies
-
In this case, I'd suggest to use a rewriter: https://github.com/JuliaInterop/Clang.jl/blob/master/gen/generator.jl#L10-L41 I didn't test the following code, but you can get the idea.
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Our project has a lot of C structs to be translated to Julia structs. I just need a few structs to be mutable. Currently, with the
auto_mutability
flag, the opposite of what I am trying to do can be achieved, i.e. all structs are mutable with some exceptions in theauto_mutability_ignorelist
. Can the opposite be done? All structs are mutable with some exceptions?It might be straight forward but I tried a bunch of permutations for the
auto_mutability
,auto_mutability_ignorelist
, andauto_mutability_includelist
but I cannot get it to do what I want.Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions