Go to the source code of this file.
◆ DEFINE_C_API_METHODS
#define DEFINE_C_API_METHODS |
( |
|
name, |
|
|
|
cpptype |
|
) |
| |
Value: static inline name
wrap(cpptype cpp) { \
return name{cpp.getAsOpaquePointer()}; \
} \
static
inline cpptype
unwrap(name c) { \
return cpptype::getFromOpaquePointer(c.ptr); \
}
mlir::Diagnostic & unwrap(MlirDiagnostic diagnostic)
MlirDiagnostic wrap(mlir::Diagnostic &diagnostic)
Definition at line 31 of file Wrap.h.
◆ DEFINE_C_API_PTR_METHODS
#define DEFINE_C_API_PTR_METHODS |
( |
|
name, |
|
|
|
cpptype |
|
) |
| |
Value: static inline name
wrap(cpptype *cpp) {
return name{cpp}; } \
static
inline cpptype *
unwrap(name c) { \
return static_cast<cpptype *>(c.ptr); \
}
Definition at line 25 of file Wrap.h.
◆ unwrapList()
template<typename CppTy , typename CTy >