Updates:
Status: Fixed
Labels: -Type-Enhancement -Patch-countdown Type-Maintainability
Fixed_2_19_21
Comment #9 on issue 4376 by [email protected]: 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 <[email protected]>
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