X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fitem-scheme.cc;h=0e6b71ef30a8191931495c3ff16bd6d9bb5fcadb;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=713873f6afbdb5b66780fec66e5506c32ed4d176;hpb=a6bd229f7fe1dc4a03478e14ccc0c0c66b225061;p=lilypond.git diff --git a/lily/item-scheme.cc b/lily/item-scheme.cc index 713873f6af..0e6b71ef30 100644 --- a/lily/item-scheme.cc +++ b/lily/item-scheme.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2005--2010 Han-Wen Nienhuys + Copyright (C) 2005--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify @@ -20,23 +20,22 @@ #include "item.hh" - LY_DEFINE (ly_item_p, "ly:item?", - 1, 0, 0, (SCM g), - "Is @var{g} an @code{Item} object?") + 1, 0, 0, (SCM g), + "Is @var{g} an @code{Item} object?") { - Grob *me = unsmob_grob (g); + Grob *me = Grob::unsmob (g); bool b = dynamic_cast (me); return ly_bool2scm (b); } LY_DEFINE (ly_item_break_dir, "ly:item-break-dir", - 1, 0, 0, (SCM it), - "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.") + 1, 0, 0, (SCM it), + "The break status direction of item @var{it}. @w{@code{-1}} means" + " end of line, @code{0}@tie{}unbroken, and" + " @code{1}@tie{}beginning of line.") { - LY_ASSERT_TYPE (unsmob_item, it, 1); - Item *me = unsmob_item (it); + LY_ASSERT_SMOB (Item, it, 1); + Item *me = Item::unsmob (it); return scm_from_int (me->break_status_dir ()); }