X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Ftranslator.hh;h=09ab16865815e322e02ecd476540555d4ee81101;hb=6786ba7b5cd73f94eec0a49fd68d0e6d9d283437;hp=dd0659bf50866ec4a9e03e86565deffc0299f7dd;hpb=a447227710cb9b6c9fe61342a90e8cc85c022136;p=lilypond.git diff --git a/lily/include/translator.hh b/lily/include/translator.hh index dd0659bf50..09ab168658 100644 --- a/lily/include/translator.hh +++ b/lily/include/translator.hh @@ -26,6 +26,7 @@ #include "callback.hh" #include "input.hh" // for error reporting #include "smobs.hh" +#include "stream-event.hh" #include "std-vector.hh" #include "protected-scm.hh" @@ -42,7 +43,19 @@ #define DECLARE_TRANSLATOR_CALLBACKS(NAME) \ template \ - static SCM method_finder () { return method_find_base (); } \ + static SCM method_finder () \ + { \ + return Callback0_wrapper::make_smob (); \ + } \ + template \ + static SCM method_finder () \ + { \ + return Callback_wrapper::make_smob > (); \ + } \ + template \ + static SCM method_finder () { \ + return Callback2_wrapper::make_smob > (); \ + } \ /* end #define */ /* @@ -146,10 +159,6 @@ protected: // should be private. return SCM_UNSPECIFIED; } - template - static SCM - method_find_base () { return Callback0_wrapper::make_smob (); } - // Fallback for non-overriden callbacks for which &T::x degrades to // &Translator::x template