lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: User-defined messages in .ly compilation output?


From: Jan Nieuwenhuizen
Subject: Re: User-defined messages in .ly compilation output?
Date: Fri, 18 Jun 2004 14:10:46 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Magnus Lewis-Smith writes:

> Nearly there.  If I use the 'display' command I get 
>
> Now processing `file.ly'
> Parsing...
> message:  expect errors
>
> file.ly:232:66: error: syntax error, unexpected SCM_T:
>         #(display "message:  expect errors\n" (current-error-port)
>                                                                   )

Sorry, it seems you need 2.3.x for this.  In 2.2.x you can use
embedded scheme only at certain places, probably you can do something like:

   a-#(begin (display "foe") "")

> Incidentally, are there facilities similar to __FILE__ and __LINE__ in C?

No, but that's an interesting idea.

Jan.

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]