Open arkanoid87 opened 1 year ago
Ah, the notorious C defines. This is essentially caused by macros being a pre-processor thing and as such they don't have a representation in the Clang translation unit output. So Øpir resorts to just parsing the value itself: https://github.com/PMunch/futhark/blob/master/src/opir.nim#L323-L368. So to fix this it's just a matter of improving the capabilities of that parser to support casting to long.
Adding this test
talias.h
talias.nim
results in
I've faced this problem while trying to wrap this