Re: clines-from-file - The argument to CLINES, LINE, is not a string



xbunny <xbunny@xxxxxxxxxxxxxx> writes:

> There is a great macro in ECL called Clines which allows me to paste
> C code into the ECL C output file and then other parts of ECL allow
> me to access and call that code once its compiled. What Im trying to
> do is write a function which allows me to read a file and puts its
> contents into Clines rather than having the C embedded as strings in
> the Lisp source. However I am a clueless newbie :-( I have the
> following function :

Too complicated. Try

(clines "#include \"some-file.c\"")

--
Johan Bockgård
.



Relevant Pages