)
(progn
#+(or cmu scl)
- (if (integerp size)
- `(alien:cast
- (alien:make-alien ,(convert-from-uffi-type (eval type) :allocation) ,size)
- (array ,(convert-from-uffi-type (eval type) :allocation) ,size))
- `(alien:cast
- (alien:make-alien ,(convert-from-uffi-type (eval type) :allocation) ,size)
- (array ,(convert-from-uffi-type (eval type) :allocation) nil)))
+ `(alien:make-alien ,(convert-from-uffi-type (eval type) :allocation) ,size)
#+sbcl
- (if (integerp size)
- `(sb-alien:cast
- (sb-alien:make-alien ,(convert-from-uffi-type (eval type) :allocation) ,size)
- (array ,(convert-from-uffi-type (eval type) :allocation) ,size))
- `(sb-alien:cast
- (sb-alien:make-alien ,(convert-from-uffi-type (eval type) :allocation) ,size)
- (array ,(convert-from-uffi-type (eval type) :allocation) nil)))
+ `(sb-alien:make-alien ,(convert-from-uffi-type (eval type) :allocation) ,size)
#+lispworks
`(fli:allocate-foreign-object :type ',(convert-from-uffi-type type :allocate) :nelems ,size)
#+allegro