lilypond-devel
[Top][All Lists]
Advanced

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

Re: How to create a restricted symbols context property


From: Urs Liska
Subject: Re: How to create a restricted symbols context property
Date: Mon, 18 Jan 2016 15:43:26 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0


Am 18.01.2016 um 11:31 schrieb Urs Liska:
> And how do I retrieve the value of the property in a C++ class?
> I see this in bar-number-engraver.cc:
>
>           SCM alternative_style = get_property
> ("alternativeNumberingStyle");
>           string text_tag = "";
>           if (scm_is_eq (alternative_style, ly_symbol2scm
> ("numbers-with-letters")))
>
> But when I try to do something comparable the compiler complains:
>     beaming-pattern.cc: In member function 'void
> Beaming_options::from_context(Context*)':
>     ./include/lily-guile-macros.hh:186:65: error:
> 'internal_get_property' was not declared in this scope
>      #define get_property(x) internal_get_property (ly_symbol2scm (x))
>                                                                  ^
>     beaming-pattern.cc:566:39: note: in expansion of macro 'get_property'
>        SCM strict_beat_beaming_behaviour = get_property ("testProperty");
>                                        ^

Never mind this part of the question. I was too stupid to correctly copy
the model (forgot "context->" when calling "get_property")

But the other one is still open.

Urs



reply via email to

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