#include "sig/ffi_type.hpp"
#include "sig/types.hpp"
+#if FFI_LONG_LONG_MAX == 9223372036854775807LL
#define ffi_type_slonglong ffi_type_sint64
#define ffi_type_ulonglong ffi_type_uint64
+#else
+#error need to configure for long long
+#endif
namespace sig {
return &ffi_type_sint;
}
+#ifdef __SIZEOF_INT128__
+template <>
+ffi_type *Primitive<signed __int128>::GetFFI(CYPool &pool) const {
+ _assert(false);
+}
+#endif
+
template <>
ffi_type *Primitive<signed long int>::GetFFI(CYPool &pool) const {
return &ffi_type_slong;
return &ffi_type_uint;
}
+#ifdef __SIZEOF_INT128__
+template <>
+ffi_type *Primitive<unsigned __int128>::GetFFI(CYPool &pool) const {
+ _assert(false);
+}
+#endif
+
template <>
ffi_type *Primitive<unsigned long int>::GetFFI(CYPool &pool) const {
return &ffi_type_ulong;
}
#endif
+ffi_type *Enum::GetFFI(CYPool &pool) const {
+ return type.GetFFI(pool);
+}
+
ffi_type *Aggregate::GetFFI(CYPool &pool) const {
// XXX: we can totally make overlap work
_assert(!overlap);