]> git.donarmstrong.com Git - lilypond.git/blobdiff - lib/input.cc
release: 1.3.23
[lilypond.git] / lib / input.cc
index db7c10ee1f3772de16ae5a6e7722ff02cce0289d..9413f7c49e82fc37ca204dddaf9cf0b0cd4ff2f7 100644 (file)
@@ -106,3 +106,11 @@ Input::location_str () const
     return "(" + _ ("position unknown") + ")";
 }
 
+String
+Input::line_number_str () const
+{
+  if (source_file_l_)
+    return to_str (source_file_l_->line_i (defined_ch_C_));
+  else
+    return "?";
+}