]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/input-scheme.cc
fix brown paper bag design: calling conventions are platform dependent.
[lilypond.git] / lily / input-scheme.cc
index 4f27b57e50a127e406f5fa6f6cd4bfbf1df6ea4e..e3d0312642fd8488b75db27dfcfea9f467dba3f9 100644 (file)
@@ -24,8 +24,8 @@ LY_DEFINE (ly_input_message, "ly:input-message", 2, 0, 1, (SCM sip, SCM msg, SCM
 {
   Input *ip = unsmob_input (sip);
 
-  LY_ASSERT_FIRST_TYPE (unsmob_input, sip);
-  LY_ASSERT_TYPE(scm_is_string, 2);
+  LY_ASSERT_TYPE (unsmob_input, sip, 1);
+  LY_ASSERT_TYPE(scm_is_string, msg,2);
 
   msg = scm_simple_format (SCM_BOOL_F, msg, rest);
 
@@ -41,7 +41,7 @@ LY_DEFINE (ly_input_file_line_char_column,
           1, 0, 0, (SCM sip),
           "Return input location in @var{sip} as (file-name line char column).")
 {
-  LY_ASSERT_FIRST_TYPE (unsmob_input, sip);
+  LY_ASSERT_TYPE (unsmob_input, sip, 1);
   Input *ip = unsmob_input (sip);
 
   int l = 0;
@@ -61,7 +61,7 @@ LY_DEFINE (ly_input_both_locations,
           "(file-name first-line first-column last-line last-column).")
 {
   
-  LY_ASSERT_FIRST_TYPE (unsmob_input, sip);
+  LY_ASSERT_TYPE (unsmob_input, sip, 1);
   Input *ip = unsmob_input (sip);
   
   return scm_list_5 (ly_string2scm (ip->file_string ()),