X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fitem-scheme.cc;h=713873f6afbdb5b66780fec66e5506c32ed4d176;hb=11cb980eb068c4d4bcaf20c27f8a0b8eda731c29;hp=0ebbc2832de9a65663a665e7e39a847a23c3c317;hpb=87eedcd59f4082cb0841528ad5bc82cb1d1191e3;p=lilypond.git diff --git a/lily/item-scheme.cc b/lily/item-scheme.cc index 0ebbc2832d..713873f6af 100644 --- a/lily/item-scheme.cc +++ b/lily/item-scheme.cc @@ -1,10 +1,21 @@ /* - item-scheme.cc -- implement Item bindings. + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 2005--2010 Han-Wen Nienhuys - (c) 2005--2007 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 "item.hh" @@ -21,10 +32,11 @@ LY_DEFINE (ly_item_p, "ly:item?", LY_DEFINE (ly_item_break_dir, "ly:item-break-dir", 1, 0, 0, (SCM it), - "The break status dir of item @var{it}. @code{-1} is end of " - "line, @code{0} unbroken, and @code{1} begin of line.") + "The break status direction of item @var{it}. @code{-1} means" + " end of line, @code{0}@tie{}unbroken, and" + " @code{1}@tie{}beginning of line.") { - Item *me = dynamic_cast (unsmob_grob (it)); - SCM_ASSERT_TYPE (me, it, SCM_ARG1, __FUNCTION__, "Item"); + LY_ASSERT_TYPE (unsmob_item, it, 1); + Item *me = unsmob_item (it); return scm_from_int (me->break_status_dir ()); }