comparison include/llvm/Support/CBindingWrapping.h @ 100:7d135dc70f03

LLVM 3.9
author Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 22:53:40 +0900
parents 54457678186b
children 803732b1fca8
comparison
equal deleted inserted replaced
96:6418606d0ead 100:7d135dc70f03
13 13
14 #ifndef LLVM_SUPPORT_CBINDINGWRAPPING_H 14 #ifndef LLVM_SUPPORT_CBINDINGWRAPPING_H
15 #define LLVM_SUPPORT_CBINDINGWRAPPING_H 15 #define LLVM_SUPPORT_CBINDINGWRAPPING_H
16 16
17 #include "llvm/Support/Casting.h" 17 #include "llvm/Support/Casting.h"
18 #include "llvm-c/Types.h"
18 19
19 #define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \ 20 #define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \
20 inline ty *unwrap(ref P) { \ 21 inline ty *unwrap(ref P) { \
21 return reinterpret_cast<ty*>(P); \ 22 return reinterpret_cast<ty*>(P); \
22 } \ 23 } \