On 4 juil. 2012, at 20:10, Marc Hohl wrote:
> Am 04.07.2012 13:29, schrieb David Kastrup:
>> Marc Hohl <address@hidden
>>> Hello list,
>>> the topic is somewhat over my head, but perhaps someone with more
>>> insight can answer this question?
>> I think that gcc likely can, don't know about g++, and we don't want to
>> rely on it anyhow.
> Well then, is there an alternative?
> I want to get rid of bar-line.cc (issue 1320), and I have managed to get all
> definitions but Bar_line::non_empty_barline into scheme.
> In lily/note-spacing.cc, I have
> Grob *bar = Pointer_group_interface::find_grob (right_col,
> ly_symbol2scm ("elements"),
> The simple approach
> bool non_empty_barline =
> ly_scm2bool (scm_call_1 (ly_lily_module_constant ("bar-line::non-empty-barline"), right_col->self_scm ()));
> (define-public (bar-line::non-empty-barline grob)
> (and (grob::has-interface grob 'bar-line)
> (pair? (ly:grob-extent grob grob X))))
> doesn't work.