Type_privateData(sig::Type *type) :
ffi_(NULL)
{
- if (type != NULL)
- Set(type);
+ // XXX: just in case I messed up migrating
+ _assert(type != NULL);
+ Set(type);
}
Type_privateData(sig::Type *type, ffi_type *ffi) {
ffi_type *GetFFI() {
if (ffi_ == NULL) {
- ffi_ = new(*pool_) ffi_type;
-
sig::Element element;
element.name = NULL;
element.type = type_;
ffi_cif cif;
sig::sig_ffi_cif(*pool_, &sig::ObjectiveC, &signature, &cif);
+
+ ffi_ = new(*pool_) ffi_type;
*ffi_ = *cif.rtype;
}