Clang.jl
Clang.jl copied to clipboard
`UndefVarError` when encountering `#define` used to rename function
trafficstars
It's not uncommon for C libraries to use #define to rename a function:
// test.h
#define fprintf sh_fprintf
but this will generate an invalid const definition:
module TestModule
const fprintf = sh_fprintf
end # module
It seems like Clang.jl needs to keep track of the identifiers here maybe?
agreed. maybe LLMs can do better.