]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/translator-scheme.cc
replace SCM_ASSERT_TYPE with LY_ASSERT_TYPE and friends
[lilypond.git] / lily / translator-scheme.cc
index 3b2604fe18846b9e34dc8c2a8d84d49d8a292a98..caafc565488af5b4fcc6d1c62b2e3c98c5099e75 100644 (file)
@@ -15,8 +15,8 @@ LY_DEFINE (ly_translator_name, "ly:translator-name",
           "Return the type name of the translator object @var{trans}. "
           "The name is a symbol.")
 {
+  LY_ASSERT_FIRST_SMOB (Translator, trans);
   Translator *tr = unsmob_translator (trans);
-  SCM_ASSERT_TYPE (tr, trans, SCM_ARG1, __FUNCTION__, "Translator");
   char const *nm = tr->class_name ();
   return ly_symbol2scm (nm);
 }
@@ -25,8 +25,8 @@ LY_DEFINE (ly_translator_description, "ly:translator-description",
           1, 0, 0, (SCM me),
           "Return an alist of properties of  translator @var{me}.")
 {
+  LY_ASSERT_FIRST_SMOB (Translator, me);
   Translator *tr = unsmob_translator (me);
-  SCM_ASSERT_TYPE (tr, me, SCM_ARG1, __FUNCTION__, "Translator");
   return tr->translator_description ();
 }