Undef the `DEFINE_C_API_STRUCT` macro after using it in the MLIR C API header (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Mon, 2 Nov 2020 18:56:25 +0000 (18:56 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 2 Nov 2020 19:18:32 +0000 (19:18 +0000)
commit9be3c01eb989a1729ea34ebe102b3716acfe5223
tree8ce2290c5001fb0c5042b2985ff9f8d3e5c45fc5
parentba18bc4925d8cbd4a9354629617cbcafbbd48941
Undef the `DEFINE_C_API_STRUCT` macro after using it in the MLIR C API header (NFC)

Leaking macros isn't a good practice when defining headers. This
requires to duplicate the macro definition in every header though, but
that seems like a better tradeoff right now.

Differential Revision: https://reviews.llvm.org/D90633
mlir/include/mlir-c/AffineExpr.h
mlir/include/mlir-c/AffineMap.h
mlir/include/mlir-c/IR.h