Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • LilyPond LilyPond
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1,019
    • Issues 1,019
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 20
    • Merge requests 20
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • LilyPond
  • LilyPondLilyPond
  • Merge requests
  • !995

Correct Smob names in "Wrong type" error messages

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Dan Eble requested to merge dev/eble/6206-assert-smob into master Nov 07, 2021
  • Overview 6
  • Commits 1
  • Pipelines 2
  • Changes 4

Move the code that was used to demangle the name of base Smobs into a template function, allowing it to be used for derived classes too.

In LY_ASSERT_SMOB, stop relying on a manually maintained predicate-to-typename table. Instead, use the new function to get the Smob name.

Tested manually with this input:

\version "2.23.5"
#(ly:context-name #f)
#(ly:item-get-column #f)

Closes #6206 (closed).

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: dev/eble/6206-assert-smob