Title: Follow-up to #125: Null directive after define confuses simplecpp · Issue #126 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: Follow-up to #125: Null directive after define confuses simplecpp · Issue #126 · cppcheck-opensource/simplecpp
X Title: Follow-up to #125: Null directive after define confuses simplecpp · Issue #126 · cppcheck-opensource/simplecpp
Description: This C code: # if 1 # define a 1 # # endif int main() { printf("%d", a); } results in this error: $ ./simplecpp null_directive.c null_directive.c:2: syntax error: failed to expand 'a', Invalid ## usage when expanding 'a'. Somehow the sin...
Open Graph Description: This C code: # if 1 # define a 1 # # endif int main() { printf("%d", a); } results in this error: $ ./simplecpp null_directive.c null_directive.c:2: syntax error: failed to expand 'a', Invalid ## u...
X Description: This C code: # if 1 # define a 1 # # endif int main() { printf("%d", a); } results in this error: $ ./simplecpp null_directive.c null_directive.c:2: syntax error: failed to expand 'a&...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/126
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Follow-up to #125: Null directive after define confuses simplecpp","articleBody":"This C code:\r\n```C\r\n# if 1\r\n# define a 1\r\n#\r\n# endif\r\n\r\nint main()\r\n{\r\n printf(\"%d\", a);\r\n}\r\n```\r\nresults in this error:\r\n```\r\n$ ./simplecpp null_directive.c\r\n\r\nnull_directive.c:2: syntax error: failed to expand 'a', Invalid ## usage when expanding 'a'.\r\n```\r\nSomehow the single `#` in the line after a `define` maybe is appended (also with a second `#`?) to the `define` and thus results in this error.\r\n\r\nboost uses such constructs, so it still does not fully work to parse the boost headers. But the fix from #125 already helps a lot.","author":{"url":"https://github.com/versat","@type":"Person","name":"versat"},"datePublished":"2018-04-18T06:44:03Z","url":"https://github.com/cppcheck-opensource/simplecpp/issues/126"}
| 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:f03dec9e-63fd-3521-d6d6-f64d69abaecd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91C4:F67AC:455AB6:60804D:6AFC540F |
| html-safe-nonce | d8b97e1b1e58a1d484d716acd5c367fb49e3045fd0532e20138763a7de09b695 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUM0OkY2N0FDOjQ1NUFCNjo2MDgwNEQ6NkFGQzU0MEYiLCJ2aXNpdG9yX2lkIjoiNTA2NTU2Mjk1NTU4NDM5NDI1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0a8baa287e61a17d0ef82fb9a5774c49410692ecd51a4c4da132ff959bce1dc4 |
| hovercard-subject-tag | issue:315350392 |
| 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/126/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9268d39c26e349f7490c6a70d6fdf6198da2d116adc0e4fc1b6eb78b6b12eb1f/cppcheck-opensource/simplecpp/issues/126 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9268d39c26e349f7490c6a70d6fdf6198da2d116adc0e4fc1b6eb78b6b12eb1f/cppcheck-opensource/simplecpp/issues/126 |
| og:image:alt | This C code: # if 1 # define a 1 # # endif int main() { printf("%d", a); } results in this error: $ ./simplecpp null_directive.c null_directive.c:2: syntax error: failed to expand 'a', Invalid ## u... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | versat |
| 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 |
Links:
Viewport: width=device-width