Title: Preprocessing failure with comma in macro · Issue #40 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: Preprocessing failure with comma in macro · Issue #40 · cppcheck-opensource/simplecpp
X Title: Preprocessing failure with comma in macro · Issue #40 · cppcheck-opensource/simplecpp
Description: Input: #define COUNTER_NAME(NAME, ...) NAME##Count #define COMMA , #define DECLARE_COUNTERS(LIST) unsigned long LIST(COUNTER_NAME, COMMA); #define ACTUAL_LIST(FUNCTION, SEPARATOR) \ FUNCTION(event1, int, foo) SEPARATOR \ FUNCTION(event2,...
Open Graph Description: Input: #define COUNTER_NAME(NAME, ...) NAME##Count #define COMMA , #define DECLARE_COUNTERS(LIST) unsigned long LIST(COUNTER_NAME, COMMA); #define ACTUAL_LIST(FUNCTION, SEPARATOR) \ FUNCTION(event1...
X Description: Input: #define COUNTER_NAME(NAME, ...) NAME##Count #define COMMA , #define DECLARE_COUNTERS(LIST) unsigned long LIST(COUNTER_NAME, COMMA); #define ACTUAL_LIST(FUNCTION, SEPARATOR) \ FUNCTION(event1...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/40
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Preprocessing failure with comma in macro","articleBody":"Input:\n\n```\n#define COUNTER_NAME(NAME, ...) NAME##Count\n#define COMMA ,\n\n#define DECLARE_COUNTERS(LIST) unsigned long LIST(COUNTER_NAME, COMMA);\n\n#define ACTUAL_LIST(FUNCTION, SEPARATOR) \\\n FUNCTION(event1, int, foo) SEPARATOR \\\n FUNCTION(event2, char, bar)\n\nDECLARE_COUNTERS(ACTUAL_LIST)\n```\n\nOutput of gcc -E:\n\n```\n#1 \"cppcheck-issue-xxxx.cpp\"\n#1 \"\u003cbuilt-in\u003e\"\n#1 \"\u003ccommand-line\u003e\"\n#1 \"cppcheck-issue-xxxx.cpp\"\n#10 \"cppcheck-issue-xxxx.cpp\"\nunsigned long event1Count , event2Count;\n```\n\nsimplecpp output:\n\n```\ntest.c:4: syntax error: failed to expand 'DECLARE_COUNTERS', Wrong number of parameters for macro 'ACTUAL_LIST'.\n```\n","author":{"url":"https://github.com/danmar","@type":"Person","name":"danmar"},"datePublished":"2016-09-06T20:28:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/40/simplecpp/issues/40"}
| 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:2557388b-3b57-efa6-a544-a3f6eede1106 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B06A:1EDC:2809639:387A642:6A4FFD97 |
| html-safe-nonce | 301ff50e7a17693078668cddd989866f7496bdf2c01f5011ca1dece87b74ac98 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDZBOjFFREM6MjgwOTYzOTozODdBNjQyOjZBNEZGRDk3IiwidmlzaXRvcl9pZCI6IjgxMzc5NTc2NjYwNTM5NDY3NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e76401a03acffb2908571d701e6863ec4092cbb17baa7ceb6efec11663d2edb8 |
| hovercard-subject-tag | issue:175343599 |
| 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/40/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cc799660805f71d9d45e849d3cd43e5802cbc83fc47d08c212d67c8fc51dc88c/cppcheck-opensource/simplecpp/issues/40 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cc799660805f71d9d45e849d3cd43e5802cbc83fc47d08c212d67c8fc51dc88c/cppcheck-opensource/simplecpp/issues/40 |
| og:image:alt | Input: #define COUNTER_NAME(NAME, ...) NAME##Count #define COMMA , #define DECLARE_COUNTERS(LIST) unsigned long LIST(COUNTER_NAME, COMMA); #define ACTUAL_LIST(FUNCTION, SEPARATOR) \ FUNCTION(event1... |
| 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 | 56eec25a3430492dd6ec2a480eb33256a0da5192d5714b0db4f5ab5f33203d94 |
| 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 | e155b8a71f9284454f73118dfe5e634e74f7afb3 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width