Title: wrong macro expansion (multiple macros) · Issue #185 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: wrong macro expansion (multiple macros) · Issue #185 · cppcheck-opensource/simplecpp
X Title: wrong macro expansion (multiple macros) · Issue #185 · cppcheck-opensource/simplecpp
Description: First reported in Cppcheck trac here: https://trac.cppcheck.net/ticket/9538 Code: #define at(x, y) x##y #define b(...) \ aa(__VA_ARGS__, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , \ , , , , , , , , 2) #define aa(c, d, a,...
Open Graph Description: First reported in Cppcheck trac here: https://trac.cppcheck.net/ticket/9538 Code: #define at(x, y) x##y #define b(...) \ aa(__VA_ARGS__, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ...
X Description: First reported in Cppcheck trac here: https://trac.cppcheck.net/ticket/9538 Code: #define at(x, y) x##y #define b(...) \ aa(__VA_ARGS__, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/185
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"wrong macro expansion (multiple macros)","articleBody":"First reported in Cppcheck trac here:\r\nhttps://trac.cppcheck.net/ticket/9538\r\n\r\nCode:\r\n```\r\n#define at(x, y) x##y\r\n#define b(...) \\\r\n aa(__VA_ARGS__, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , \\\r\n , , , , , , , , 2)\r\n#define aa(c, d, a, b, e, f, g, h, ab, ac, i, ad, j, k, l, m, n, o, p, ae, q, \\\r\n r, s, t, u, v, w, x, y, z, af, ag, ah, ai, aj, ak, al, am, an, ao, \\\r\n ap) \\\r\n ap\r\n#define aq(...) ar(b(__VA_ARGS__), __VA_ARGS__) static_assert(true, \"\")\r\n#define ar(ap, ...) at(I_, ap)(__VA_ARGS__)\r\n#define I_2(as, a)\r\naq(a, array);\r\n```\r\n\r\nsimplecpp outputs `I_2 ( a , array ) static_assert ( true , \"\" ) ;` but `gcc -E` output is `static_assert ( true , \"\" ) ;`","author":{"url":"https://github.com/danmar","@type":"Person","name":"danmar"},"datePublished":"2019-12-14T15:03:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/185/simplecpp/issues/185"}
| 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:c47495c6-6eb3-b13d-8f2b-7eabad56bc40 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BABE:1FFDFF:132D44A:1A0D9B9:6A4EFA3C |
| html-safe-nonce | 635a7c56b422f662604d12363834130678dc91b3d010156fde44584b0b2c4940 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUJFOjFGRkRGRjoxMzJENDRBOjFBMEQ5Qjk6NkE0RUZBM0MiLCJ2aXNpdG9yX2lkIjoiNTQ4NTk3ODQyNzc5NzIwNzYxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dc15bac050f0756bbc4b2097b2e47b58561e9c3de4fbc7172ac694bec28283fc |
| hovercard-subject-tag | issue:537924632 |
| 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/185/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e3231db5e261c6e28be35c8ff1093c264d3bbdb9aba55129068780c70e2d741/cppcheck-opensource/simplecpp/issues/185 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e3231db5e261c6e28be35c8ff1093c264d3bbdb9aba55129068780c70e2d741/cppcheck-opensource/simplecpp/issues/185 |
| og:image:alt | First reported in Cppcheck trac here: https://trac.cppcheck.net/ticket/9538 Code: #define at(x, y) x##y #define b(...) \ aa(__VA_ARGS__, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ... |
| 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 | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width