Francogrex wrote:
> I'm using ECL a lot but have yet to see posted a comprehensive example
> on how to embed CL functions.
I've put up http://github.com/ayrnieu/ecl-examples/tree/master ;
you can
git clone git://github.com/ayrnieu/ecl-examples.git
cd ecl-examples
make
On Mar 1, 5:23 pm, Francogrex <······@grex.org> wrote:
> Hi what's the [...] MAKE_FIXNUM to pass a float or double from
> C to ECL.
> Is there sometyhing like MAKE_FLOAT?
void floats (void) {
cl_object vector;
vector = cl_vector(2, ecl_make_singlefloat(1234567890123456.0),
ecl_make_doublefloat(1234567890123456.0));
cl_print(1, vector);
cl_terpri(0);
}
If you've installed ECL into /usr/local , you can look through the
headers in /usr/local/include/ecl/ [the way I did to answer your
question].