Title: inner macro not expanded after hash hash · Issue #400 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: inner macro not expanded after hash hash · Issue #400 · cppcheck-opensource/simplecpp
X Title: inner macro not expanded after hash hash · Issue #400 · cppcheck-opensource/simplecpp
Description: Example code: #define FOO(a) CAT(DO, STUFF)(1,2) #define DOSTUFF(a, b) CAT(3, 4) #define CAT(a, b) a##b FOO(1) simplecpp output: UTIL_CAT ( 3 , 4 ) gcc -E output: 34
Open Graph Description: Example code: #define FOO(a) CAT(DO, STUFF)(1,2) #define DOSTUFF(a, b) CAT(3, 4) #define CAT(a, b) a##b FOO(1) simplecpp output: UTIL_CAT ( 3 , 4 ) gcc -E output: 34
X Description: Example code: #define FOO(a) CAT(DO, STUFF)(1,2) #define DOSTUFF(a, b) CAT(3, 4) #define CAT(a, b) a##b FOO(1) simplecpp output: UTIL_CAT ( 3 , 4 ) gcc -E output: 34
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/400
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"inner macro not expanded after hash hash","articleBody":"Example code:\r\n```\r\n#define FOO(a) CAT(DO, STUFF)(1,2)\r\n#define DOSTUFF(a, b) CAT(3, 4)\r\n#define CAT(a, b) a##b\r\n\r\nFOO(1)\r\n```\r\n\r\nsimplecpp output:\r\n```\r\n UTIL_CAT ( 3 , 4 )\r\n```\r\n\r\n`gcc -E` output:\r\n```\r\n34\r\n```","author":{"url":"https://github.com/danmar","@type":"Person","name":"danmar"},"datePublished":"2024-12-13T22:14:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/400/simplecpp/issues/400"}
| 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:d1ab8b52-5f84-ea86-cb60-699cd2d4ff74 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4E6:16C3D3:25A2D26:342C9BB:6A4F48D4 |
| html-safe-nonce | f668219b7d4dfbccde8e06201cd17e3f3a0bd4e7873b1b3499aed04561af483c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEU2OjE2QzNEMzoyNUEyRDI2OjM0MkM5QkI6NkE0RjQ4RDQiLCJ2aXNpdG9yX2lkIjoiMTkxNDUyOTA5OTAwNDQ2MzMxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 41cb8d315c9ce3a82c8d99ee7c0a25a6b89867a3968c4f9bc2d90a15e96efa68 |
| hovercard-subject-tag | issue:2739288682 |
| 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/400/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a69d31be4ab67dc2670340114417607eac44037cbf812a5e5902f65b283ffa7/cppcheck-opensource/simplecpp/issues/400 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a69d31be4ab67dc2670340114417607eac44037cbf812a5e5902f65b283ffa7/cppcheck-opensource/simplecpp/issues/400 |
| og:image:alt | Example code: #define FOO(a) CAT(DO, STUFF)(1,2) #define DOSTUFF(a, b) CAT(3, 4) #define CAT(a, b) a##b FOO(1) simplecpp output: UTIL_CAT ( 3 , 4 ) gcc -E output: 34 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danmar |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width