How can I return a string constant from a call to ffi:c-inline?
I've tried variations of the following without success (ORGANIZATION is a constant defined in constants.h):
(ffi:clines "#include \"./constants.h\"")
(ffi:c-inline () () :string "ORGANIZATION" :one-liner t)
The example above results in the following compiler error:
Unknown representation type :STRING
Use
:cstringinstead of:string:constants.h:
ecl.lsp:
From ecl prompt:
Reference: https://ecl.common-lisp.dev/static/manual/Foreign-Function-Interface.html#Primitive-Types