Title: simplecpp does not handle hashes in __VA_OPT__ correctly · Issue #458 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: simplecpp does not handle hashes in __VA_OPT__ correctly · Issue #458 · cppcheck-opensource/simplecpp
X Title: simplecpp does not handle hashes in __VA_OPT__ correctly · Issue #458 · cppcheck-opensource/simplecpp
Description: Test code: #define A(x, ...) # __VA_OPT__(# x) A(x, y) #define B(x, ...) # __VA_OPT__(x ## __VA_ARGS__) B(Hello, world) simplecpp output: # "x" "Hello" world gcc output: # 0 "
Open Graph Description: Test code: #define A(x, ...) # __VA_OPT__(# x) A(x, y) #define B(x, ...) # __VA_OPT__(x ## __VA_ARGS__) B(Hello, world) simplecpp output: # "x" "Hello" world gcc output: # 0 " X Description: Test code: #define A(x, ...) # __VA_OPT__(# x) A(x, y) #define B(x, ...) # __VA_OPT__(x ## __VA_ARGS__) B(Hello, world) simplecpp output: # "x" "Hello" world gcc output: # 0 &qu...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/458
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"simplecpp does not handle hashes in __VA_OPT__ correctly","articleBody":"Test code:\n```\n#define A(x, ...) # __VA_OPT__(# x)\nA(x, y)\n\n#define B(x, ...) # __VA_OPT__(x ## __VA_ARGS__)\nB(Hello, world)\n```\n\nsimplecpp output:\n```\n#\n\"x\"\n\n\n\"Hello\" world\n```\n\ngcc output:\n```\n# 0 \"\u003cstdin>\"\n# 0 \"\u003cbuilt-in>\"\n# 0 \"\u003ccommand-line>\"\n# 1 \"/usr/include/stdc-predef.h\" 1 3 4\n# 0 \"\u003ccommand-line>\" 2\n# 1 \"\u003cstdin>\"\n\n\"\\\"x\\\"\"\n\n\n\"Helloworld\"\n```\n\nclang output:\n```\n# 1 \"\u003cstdin>\"\n# 1 \"\u003cbuilt-in>\" 1\n# 1 \"\u003cbuilt-in>\" 3\n# 411 \"\u003cbuilt-in>\" 3\n# 1 \"\u003ccommand line>\" 1\n# 1 \"\u003cbuilt-in>\" 2\n# 1 \"\u003cstdin>\" 2\n\n\"\\\"x\\\"\"\n\n\n\"Helloworld\"\n```","author":{"url":"https://github.com/glankk","@type":"Person","name":"glankk"},"datePublished":"2025-07-03T08:56:48Z","url":"https://github.com/cppcheck-opensource/simplecpp/issues/458"}
react-profiling 0 react-import-map react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:293167db-154f-a0ad-1599-0b8c9d2251e6 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 9016:30D24F:3E43DF:56AE77:6AFC5288 html-safe-nonce e2724b588c785d815ad54f5f2d56f573f8970a1a134364af7625c7f333156638 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDE2OjMwRDI0RjozRTQzREY6NTZBRTc3OjZBRkM1Mjg4IiwidmlzaXRvcl9pZCI6IjUzMjUyNjc5NjcxMzczMDUyMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac 78ca8323a42f13b130af16800f5c0ea92b2f2507a1fc22aee00241b804dde9b1 hovercard-subject-tag issue:3198611354 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cppcheck-opensource/simplecpp/458/issue_layout twitter:image https://opengraph.githubassets.com/aa0c72704105eaf765d296b354c74df605519a2368dc85ba3933751a2171c299/cppcheck-opensource/simplecpp/issues/458 twitter:card summary_large_image og:image https://opengraph.githubassets.com/aa0c72704105eaf765d296b354c74df605519a2368dc85ba3933751a2171c299/cppcheck-opensource/simplecpp/issues/458 og:image:alt Test code: #define A(x, ...) # __VA_OPT__(# x) A(x, y) #define B(x, ...) # __VA_OPT__(x ## __VA_ARGS__) B(Hello, world) simplecpp output: # "x" "Hello" world gcc output: # 0 " og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username glankk hostname github.com expected-hostname github.com None b63557e0027d8014589e873df28328da74a4356701bb1a9eab49dbf012ba8fa6 turbo-cache-control no-preview go-import github.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git octolytics-dimension-user_id 278097703 octolytics-dimension-user_login cppcheck-opensource octolytics-dimension-repository_id 33434464 octolytics-dimension-repository_nwo cppcheck-opensource/simplecpp octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 33434464 octolytics-dimension-repository_network_root_nwo cppcheck-opensource/simplecpp turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 0243355b0352c83733a042e0dfb3d75149b51261 ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.