X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/4d89d941ae5c674e85ae5402361cb893c07ce65b..93348ae9e276dec213b5d543338b1e2c53a7b687:/src/c-types-impl.lisp diff --git a/src/c-types-impl.lisp b/src/c-types-impl.lisp index be2c055..4a0f6e2 100644 --- a/src/c-types-impl.lisp +++ b/src/c-types-impl.lisp @@ -431,6 +431,7 @@ (make-instance 'c-function-type :subtype subtype :arguments (if (and arguments (null (cdr arguments)) + (not (eq (car arguments) :ellipsis)) (eq (argument-type (car arguments)) c-type-void)) nil @@ -484,7 +485,7 @@ (list (argument-name arg) (argument-type arg)))) (c-function-arguments type)))) -(export '(fun function func fn)) +(export '(fun function () func fn)) (define-c-type-syntax fun (ret &rest args) "Return the type of functions which returns RET and has arguments ARGS.