Title: Problems with ## · Issue #269 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: Problems with ## · Issue #269 · cppcheck-opensource/simplecpp
X Title: Problems with ## · Issue #269 · cppcheck-opensource/simplecpp
Description: I tested the following source file: #include
Open Graph Description: I tested the following source file: #include
X Description: I tested the following source file: #include <stdio.h> #define __SAMC21N18A__ #define SAM_PART_IS_DEFINED(part) (defined(__ ## part ## __)) #define SAM SAM_PART_IS_DEFINED(SAMC21N18A) int mai...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/269
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problems with ##","articleBody":"I tested the following source file:\r\n\r\n```\r\n#include \u003cstdio.h>\r\n\r\n#define __SAMC21N18A__\r\n#define SAM_PART_IS_DEFINED(part) (defined(__ ## part ## __))\r\n\r\n#define SAM SAM_PART_IS_DEFINED(SAMC21N18A)\r\n\r\n\r\nint main()\r\n{\r\n#if SAM\r\n printf(\"Hello World\");\r\n#endif\r\n\r\n return 0;\r\n}\r\n```\r\n\r\ngcc compiles it and the application shows \"Hello World\" as expected. However, when I process with simplecpp, I obtain:\r\n\r\n```\r\n$ simplecpp mytest.c \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\nint main ( ) \r\n{ \r\n \r\n \r\n \r\n \r\nreturn 0 ; \r\n} \r\nmytest.c:1: missing header: Header not found: \u003cstdio.h> \r\n```\r\n\r\nThe macro SAM_PART_IS_DEFINED() is derived from a third party library from Atmel/Microchip. See [here]([https://github.com/siliconunited/atmel-asf/blob/master/common/utils/parts.h])","author":{"url":"https://github.com/pozzugno","@type":"Person","name":"pozzugno"},"datePublished":"2022-08-29T07:33:20Z","url":"https://github.com/cppcheck-opensource/simplecpp/issues/269"}
| 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:b1a302aa-1bc8-3750-90a3-f610790080c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC60:11C9E2:4BE21:6ED7B:6AFC5410 |
| html-safe-nonce | b7a6317302078016afa1cdcd24dc2d4b19d8d6c72c566d0da422efd834de81f2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzYwOjExQzlFMjo0QkUyMTo2RUQ3Qjo2QUZDNTQxMCIsInZpc2l0b3JfaWQiOiI2MDIxMzI3NjYyOTYwMzY2NjA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9ab2eb40d649c12b6c844a96da26e4a2d5c053eb577e05208d7ba035c82cbc18 |
| hovercard-subject-tag | issue:1353840741 |
| 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/269/issue_layout |
| twitter:image | https://opengraph.githubassets.com/33dd1690807857b1548a036f164cb807fc7688532eecf9639c9c5f73f2a1cedd/cppcheck-opensource/simplecpp/issues/269 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/33dd1690807857b1548a036f164cb807fc7688532eecf9639c9c5f73f2a1cedd/cppcheck-opensource/simplecpp/issues/269 |
| og:image:alt | I tested the following source file: #include |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pozzugno |
| 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