[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lilypond-auto] Issue 4376 in lilypond: Patch: Add LY_ASSERT_DERIVED
From: |
lilypond |
Subject: |
Re: [Lilypond-auto] Issue 4376 in lilypond: Patch: Add LY_ASSERT_DERIVED_SMOB macro |
Date: |
Tue, 12 May 2015 13:17:56 +0000 |
Updates:
Status: Fixed
Labels: -Type-Enhancement -Patch-countdown Type-Maintainability
Fixed_2_19_21
Comment #9 on issue 4376 by address@hidden: Patch: Add LY_ASSERT_DERIVED_SMOB
macro
https://code.google.com/p/lilypond/issues/detail?id=4376
Pushed to staging as part of issue 4357 as
commit b882256ddb159e7169a30052f0c9fb2999f83b7a
Author: David Kastrup <address@hidden>
Date: Thu May 7 00:30:18 2015 +0200
Issue 4376: Add LY_ASSERT_DERIVED_SMOB macro
When LY_ASSERT_SMOB is called with a class that is actually derived from
some smobified base class providing is_smob and unsmob, the resulting
check and error message are inaccurate. This patch uses dynamic_cast to
implement a separate LY_ASSERT_DERIVED_SMOB attaining sensible behavior
in that case. When no derivation is involved, the performance impact is
minimal.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings