]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/global-context.cc
Imported Upstream version 2.19.51
[lilypond.git] / lily / global-context.cc
index c21deb3b9ba54651c20cf21237d5ba538a249dc2..47e76718db2bd13e6e1c9236bf27df5ab10ef173 100644 (file)
@@ -30,6 +30,12 @@ using namespace std;
 #include "output-def.hh"
 #include "warn.hh"
 
+void
+Global_context::pre_init ()
+{
+  output_def_ = 0;
+}
+
 Global_context::Global_context (Output_def *o)
   : Context ()
 {
@@ -56,6 +62,13 @@ Global_context::Global_context (Output_def *o)
   accepts_list_ = scm_list_1 (default_child_);
 }
 
+void
+Global_context::derived_mark () const
+{
+  if (output_def_)
+    scm_gc_mark (output_def_->self_scm ());
+}
+
 Output_def *
 Global_context::get_output_def () const
 {