Skip to content

Support for prefixed underscores

Compare
Choose a tag to compare
@liblit liblit released this 09 Nov 20:56
· 88 commits to master since this release

This release adds support for platforms that prefix symbols with an extra leading underscore, or for mixtures of prefixed and non-prefixed symbols. Both _Z5printi and __Z5printi demangle identically to print(int), regardless of the host platform’s prefixing conventions.

Special thanks to GitHub user @kastiglione for reporting this problem (issue #2) and helping me identify a robust solution.