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

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to