X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpointer-group-interface-scheme.cc;fp=lily%2Fpointer-group-interface-scheme.cc;h=53fe7b20971f2cea645f33f0e99ac962a94db99d;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=0000000000000000000000000000000000000000;hpb=a8c9e8a7ca320ab0df5fd32e717fd62cd7635ce6;p=lilypond.git diff --git a/lily/pointer-group-interface-scheme.cc b/lily/pointer-group-interface-scheme.cc new file mode 100644 index 0000000000..53fe7b2097 --- /dev/null +++ b/lily/pointer-group-interface-scheme.cc @@ -0,0 +1,36 @@ +/* + This file is part of LilyPond, the GNU music typesetter. + + Copyright (C) 2010--2011 Han-Wen Nienhuys + + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . +*/ + +#include "pointer-group-interface.hh" +#include "grob.hh" + +LY_DEFINE (ly_pointer_group_interface__add_grob, "ly:pointer-group-interface::add-grob", + 3, 0, 0, (SCM grob, SCM sym, SCM grob_element), + "Add @var{grob-element} to @var{grob}'s @var{sym} grob array.") +{ + LY_ASSERT_TYPE (unsmob_grob, grob, 1); + LY_ASSERT_TYPE (ly_is_symbol, sym, 2); + LY_ASSERT_TYPE (unsmob_grob, grob_element, 3); + + Pointer_group_interface::add_grob (unsmob_grob (grob), + sym, + unsmob_grob (grob_element)); + return SCM_UNSPECIFIED; +} +