]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/context-mod.cc
Build: Version dependency for python preamble (issue 1726).
[lilypond.git] / lily / context-mod.cc
index 5fccf6c4d2985f5e865a33fb96f1f5a3d9300192..a51f7cf71e7ee4ca9afaecb08dfa0b7f7dfa988f 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2010--2011 Reinhold Kainhofer <reinhold@kainhofer.com>
+  Copyright (C) 2010--2012 Reinhold Kainhofer <reinhold@kainhofer.com>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -29,6 +29,11 @@ Context_mod::Context_mod (Context_mod const &s)
   mods_ = s.mods_;
 }
 
+Context_mod::Context_mod (SCM mod_list)
+{
+  mods_ = scm_reverse (mod_list);
+}
+
 #include "ly-smobs.icc"
 IMPLEMENT_SIMPLE_SMOBS (Context_mod);
 IMPLEMENT_DEFAULT_EQUAL_P (Context_mod);