along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "context.hh"
#include "context-def.hh"
#include "translator-group.hh"
#include "moment.hh"
return tr->translator_description ();
}
+
+LY_DEFINE (ly_translator_context, "ly:translator-context",
+ 1, 0, 0, (SCM trans),
+ "Return the context of the translator object @var{trans}.")
+{
+ LY_ASSERT_SMOB (Translator, trans, 1);
+ Translator *tr = unsmob_translator (trans);
+
+ Context *c = tr->context ();
+ return c ? c->self_scm () : SCM_BOOL_F;
+}