Clang.jl
Clang.jl copied to clipboard
Support for `using`
trafficstars
/// These callbacks are used to return multiple types from functions while
/// transferring ownership to the caller. The first argument is the number of
/// consecutive elements pointed to by the second argument. The third argument
/// is an opaque pointer forwarded to the callback by the caller.
using MlirTypesCallback = void (*)(intptr_t, MlirType *, void *);
Lead to:
/home/vchuravy/.julia/artifacts/c90711842814121dacf839a59bca4c40f573cbff/include/mlir-c/Interfaces.h:51:1: error: unknown type name 'using'
/home/vchuravy/.julia/artifacts/c90711842814121dacf839a59bca4c40f573cbff/include/mlir-c/Interfaces.h:51:27: error: expected expression
/home/vchuravy/.julia/artifacts/c90711842814121dacf839a59bca4c40f573cbff/include/mlir-c/Interfaces.h:60:45: error: unknown type name 'MlirTypesCallback'
using MlirTypesCallback = void (*)(intptr_t, MlirType *, void *);
this is actually C++, C doesn't have the using keyword.
I see I will need to grumble at upstream for putting that into a C header
Is there a way to work around this in Clang.jl?
closed by #480, #432, #435