cffi

    2熱度

    1回答

    得到的結果下面是C中的函數: union Example { int number; void *pointer; }; void return_a_value (union Example *ptr) { (*ptr).number = 1; } 現在我想通過CFFI調用它Common Lisp中,我該怎麼辦呢? (defcunion Example

    2熱度

    2回答

    在通常的lisp中,是否有推薦針對外國類型的命名約定? (和一般類型)?例如: (cffi:defctype glyph-index-t :uint32) (cffi:defcstruct Point (x :int32) (y :int32)) (cffi:define-foreign-library fontlib (t (:default "font"))) (c