— Ensures that a dereferenced
:char pointer is
Either a character or a integer specifying a character code.
Ensures that an objects obtained by dereferencing
pointers are a lisp character.
(let ((fs (convert-to-foreign-string "a"))) (prog1 (ensure-char-character (deref-pointer fs :char)) (free-foreign-object fs))) => #\a
Depending upon the implementation and what UFFI expects, this macro may signal an error if the object is not a character or integer.