X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/a52cb41cb840401f67495c98b36393f7f9926336..2c6153373f927d948a74b283ebb16330af8ee49a:/src/c-types-class-impl.lisp diff --git a/src/c-types-class-impl.lisp b/src/c-types-class-impl.lisp index 1f43c60..2908d75 100644 --- a/src/c-types-class-impl.lisp +++ b/src/c-types-class-impl.lisp @@ -128,9 +128,13 @@ (export 'find-sod-class) (defun find-sod-class (name) "Return the `sod-class' object with the given NAME." - (aif (find-class-type name) - (or (c-type-class it) (error "Class `~A' is incomplete" name)) - (error "Type `~A' not known" name))) + (acond ((find-class-type name) + (or (c-type-class it) + (error "Class `~A' is incomplete" name))) + ((find-simple-c-type name) + (error "Type `~A' is not a class" name)) + (t + (error "Type `~A' not known" name)))) (export 'record-sod-class) (defun record-sod-class (class)