summaryrefslogtreecommitdiff
path: root/lily/item-scheme.cc
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2014-09-29 19:39:22 +0200
committerDavid Kastrup <dak@gnu.org>2014-10-06 09:31:20 +0200
commitf5e923a6ce8cebb7ef893c03ce56aa5e598002c9 (patch)
tree88085718f43d5b43130cc095adb8d4820f0469df /lily/item-scheme.cc
parent2558bbf111c416f0c7093f7f8a3129533310cf37 (diff)
Issue4141/2: Use Xxx:is_smob instead of Xxx:unsmob when used in boolean contexts
This saves a memory access and comparison and leads to better code even when unsmob is called afterwards anyway.
Diffstat (limited to 'lily/item-scheme.cc')
-rw-r--r--lily/item-scheme.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lily/item-scheme.cc b/lily/item-scheme.cc
index 0887ac3d9a..58b98b29f5 100644
--- a/lily/item-scheme.cc
+++ b/lily/item-scheme.cc
@@ -35,7 +35,7 @@ LY_DEFINE (ly_item_break_dir, "ly:item-break-dir",
" end of line, @code{0}@tie{}unbroken, and"
" @code{1}@tie{}beginning of line.")
{
- LY_ASSERT_TYPE (Item::unsmob, it, 1);
+ LY_ASSERT_SMOB (Item, it, 1);
Item *me = Item::unsmob (it);
return scm_from_int (me->break_status_dir ());
}