1
0
mirror of synced 2026-02-23 15:53:37 +00:00

Merge pull request #5317 from donn/libparse_error_weak

libparse/filterlib: mark LibertyParser::error() as weak
This commit is contained in:
Emil J
2025-09-08 19:59:08 +02:00
committed by GitHub

View File

@@ -676,12 +676,15 @@ void LibertyParser::error(const std::string &str) const
#else
YS_ATTRIBUTE(weak)
void LibertyParser::error() const
{
fprintf(stderr, "Syntax error in liberty file on line %d.\n", line);
exit(1);
}
YS_ATTRIBUTE(weak)
void LibertyParser::error(const std::string &str) const
{
std::stringstream ss;