René's URL Explorer Experiment


Title: failure to preprocess zephyr (blinky example) · Issue #549 · cppcheck-opensource/simplecpp · GitHub

Open Graph Title: failure to preprocess zephyr (blinky example) · Issue #549 · cppcheck-opensource/simplecpp

X Title: failure to preprocess zephyr (blinky example) · Issue #549 · cppcheck-opensource/simplecpp

Description: Reduced example code: #define DT_DRV_COMPAT renesas_ra_external_interrupt #define DT_FOREACH_OKAY_INST_renesas_ra_external_interrupt(fn) fn(0) fn(1) #define _DO_CONCAT(x, y) x ## y #define _CONCAT(x, y) _DO_CONCAT(x, y) #define Z_IS_ENAB...

Open Graph Description: Reduced example code: #define DT_DRV_COMPAT renesas_ra_external_interrupt #define DT_FOREACH_OKAY_INST_renesas_ra_external_interrupt(fn) fn(0) fn(1) #define _DO_CONCAT(x, y) x ## y #define _CONCAT(...

X Description: Reduced example code: #define DT_DRV_COMPAT renesas_ra_external_interrupt #define DT_FOREACH_OKAY_INST_renesas_ra_external_interrupt(fn) fn(0) fn(1) #define _DO_CONCAT(x, y) x ## y #define _CONCAT(...

Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/549

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"failure to preprocess zephyr (blinky example)","articleBody":"Reduced example code:\n```\n#define DT_DRV_COMPAT renesas_ra_external_interrupt\n#define DT_FOREACH_OKAY_INST_renesas_ra_external_interrupt(fn) fn(0) fn(1)\n#define _DO_CONCAT(x, y) x ## y\n#define _CONCAT(x, y) _DO_CONCAT(x, y)\n#define Z_IS_ENABLED1(config_macro) Z_IS_ENABLED2(_XXXX##config_macro)\n#define _XXXX1 _YYYY,\n#define Z_IS_ENABLED2(one_or_two_args) Z_IS_ENABLED3(one_or_two_args 1, 0)\n#define Z_IS_ENABLED3(ignore_this, val, ...) val\n#define Z_COND_CODE_1(_flag, _if_1_code, _else_code)\t__COND_CODE(_XXXX##_flag, _if_1_code, _else_code)\n#define Z_COND_CODE_0(_flag, _if_0_code, _else_code)\t__COND_CODE(_ZZZZ##_flag, _if_0_code, _else_code)\n#define _ZZZZ0 _YYYY,\n#define __COND_CODE(one_or_two_args, _if_code, _else_code)\t__GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)\n#define __GET_ARG2_DEBRACKET(ignore_this, val, ...) __DEBRACKET val\n#define __DEBRACKET(...) __VA_ARGS__\n#define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)\n#define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__\n#define IS_BIT_SET(value, bit) ((((value) \u003e\u003e (bit)) \u0026 (0x1)) != 0)\n#define COND_CODE_1(_flag, _if_1_code, _else_code)\tZ_COND_CODE_1(_flag, _if_1_code, _else_code)\n#define IS_EQ(a, b) Z_IS_EQ(a, b)\n#define DT_NODE_VENDOR_BY_IDX_OR(node_id, idx, default_value)\tCOND_CODE_1(DT_NODE_VENDOR_HAS_IDX(node_id, idx), (DT_NODE_VENDOR_BY_IDX(node_id, idx)), (default_value))\n\n#define DT_INST_FOREACH_STATUS_OKAY(fn) \\\n\tCOND_CODE_1(DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT),\t\\\n\t\t    (UTIL_CAT(DT_FOREACH_OKAY_INST_,\t\t\\\n\t\t\t      DT_DRV_COMPAT)(fn)),\t\t\\\n\t\t    ())\n\n#define Z_INIT_PRE_KERNEL_1_PRE_KERNEL_1 1\n#define INIT_LEVEL_ORD(level)                                                  \\\n\tCOND_CODE_1(Z_INIT_EARLY_##level, (Z_INIT_ORD_EARLY),                  \\\n\t(COND_CODE_1(Z_INIT_PRE_KERNEL_1_##level, (Z_INIT_ORD_PRE_KERNEL_1),   \\\n\t(COND_CODE_1(Z_INIT_PRE_KERNEL_2_##level, (Z_INIT_ORD_PRE_KERNEL_2),   \\\n\t(COND_CODE_1(Z_INIT_POST_KERNEL_##level, (Z_INIT_ORD_POST_KERNEL),     \\\n\t(COND_CODE_1(Z_INIT_APPLICATION_##level, (Z_INIT_ORD_APPLICATION),     \\\n\t(COND_CODE_1(Z_INIT_SMP_##level, (Z_INIT_ORD_SMP),                     \\\n\t(ZERO_OR_COMPILE_ERROR(0)))))))))))))\n\n\n#define TYPE_SECTION_ITERABLE(type, varname, secname, section_postfix) \\\n\tZ_DECL_ALIGN(type) varname \\\n\t__in_section(_##secname, static, _CONCAT(section_postfix, _)) __used __noasan\n\n#define STRUCT_SECTION_ITERABLE_NAMED_ALTERNATE(struct_type, secname, name, varname) \\\n\tTYPE_SECTION_ITERABLE(struct struct_type, varname, secname, name)\n\n#define DEVICE_DT_DEINIT_DEFINE(node_id, init_fn, deinit_fn, pm, data, config, \\\n\t\t\t\tlevel, prio, api, ...)                         \\\n\tZ_DEVICE_STATE_DEFINE(Z_DEVICE_DT_DEV_ID(node_id));                    \\\n\tZ_DEVICE_DEFINE(node_id, Z_DEVICE_DT_DEV_ID(node_id),                  \\\n\t\t\tDEVICE_DT_NAME(node_id), init_fn, deinit_fn,           \\\n\t\t\tZ_DEVICE_DT_FLAGS(node_id), pm, data, config, level,   \\\n\t\t\tprio, api,                                             \\\n\t\t\t\u0026Z_DEVICE_STATE_NAME(Z_DEVICE_DT_DEV_ID(node_id)),     \\\n\t\t\t__VA_ARGS__)\n\n#define DEVICE_DT_DEFINE(node_id, init_fn, pm, data, config, level, prio, api, \\\n\t\t\t ...)                                                  \\\n\tDEVICE_DT_DEINIT_DEFINE(node_id, init_fn, NULL, pm, data, config,      \\\n\t\t\t\tlevel, prio, api, __VA_ARGS__)\n\n#define DEVICE_DT_INST_DEFINE(inst, ...)\tDEVICE_DT_DEFINE(DT_DRV_INST(inst), __VA_ARGS__)\n\n#define Z_DEVICE_SECTION_NAME(level, prio)\t_CONCAT(INIT_LEVEL_ORD(level), _##prio)\n\n#define Z_DEVICE_BASE_DEFINE(node_id, dev_id, name, init_fn, deinit_fn, flags, pm, data, config,   \\\n\t\t\t     level, prio, api, state, deps)                                        \\\n\tCOND_CODE_1(DT_NODE_EXISTS(node_id), (), (static))                                         \\\n\tCOND_CODE_1(Z_DEVICE_IS_MUTABLE(node_id), (), (const))                                     \\\n\tSTRUCT_SECTION_ITERABLE_NAMED_ALTERNATE(                                                   \\\n\t\tdevice, COND_CODE_1(Z_DEVICE_IS_MUTABLE(node_id), (device_mutable), (device)),     \\\n\t\tZ_DEVICE_SECTION_NAME(level, prio), DEVICE_NAME_GET(dev_id)) =                     \\\n\t\tZ_DEVICE_INIT(name, init_fn, deinit_fn, flags, pm, data, config, api, state, deps, \\\n\t\t\t      node_id, dev_id)\n\n#define Z_DEVICE_CHECK_INIT_LEVEL(level)                                       \\\n\tCOND_CODE_1(Z_INIT_PRE_KERNEL_1_##level, (),                           \\\n\t(COND_CODE_1(Z_INIT_PRE_KERNEL_2_##level, (),                          \\\n\t(COND_CODE_1(Z_INIT_POST_KERNEL_##level, (),                           \\\n\t(ZERO_OR_COMPILE_ERROR(0)))))))\n\n#define Z_DEVICE_INIT_ENTRY_DEFINE(node_id, dev_id, level, prio)                                   \\\n\tZ_DEVICE_CHECK_INIT_LEVEL(level)                                                           \\\n                                                                                                   \\\n\tstatic const Z_DECL_ALIGN(struct init_entry) __used __noasan Z_INIT_ENTRY_SECTION(         \\\n\t\tlevel, prio, Z_DEVICE_INIT_SUB_PRIO(node_id))                                      \\\n\t\tZ_INIT_ENTRY_NAME(DEVICE_NAME_GET(dev_id)) = {                                     \\\n\t\t\t.init_fn = NULL,                                                           \\\n\t\t\t.dev = (const struct device *)\u0026DEVICE_NAME_GET(dev_id),                    \\\n\t\t}\n\n#define Z_DEVICE_DEFINE(node_id, dev_id, name, init_fn, deinit_fn, flags, pm,   \\\n\t\t\tdata, config, level, prio, api, state, ...)             \\\n\tZ_DEVICE_NAME_CHECK(name);                                              \\\n                                                                                \\\n\tIF_ENABLED(CONFIG_DEVICE_DEPS,                                          \\\n\t\t   (Z_DEVICE_DEPS_DEFINE(node_id, dev_id, __VA_ARGS__);))       \\\n                                                                                \\\n\tIF_ENABLED(CONFIG_DEVICE_DT_METADATA,                                   \\\n\t\t   (IF_ENABLED(DT_NODE_EXISTS(node_id),                         \\\n\t\t\t      (Z_DEVICE_DT_METADATA_DEFINE(node_id, dev_id);))))\\\n                                                                                \\\n\tZ_DEVICE_BASE_DEFINE(node_id, dev_id, name, init_fn, deinit_fn, flags,  \\\n\t\t\t     pm, data, config, level, prio, api, state,         \\\n\t\t\t     Z_DEVICE_DEPS_NAME(dev_id));                       \\\n                                                                                \\\n\tZ_DEVICE_INIT_ENTRY_DEFINE(node_id, dev_id, level, prio);               \\\n                                                                                \\\n\tIF_ENABLED(CONFIG_LLEXT_EXPORT_DEVICES,                                 \\\n\t\t(IF_ENABLED(DT_NODE_EXISTS(node_id),                            \\\n\t\t\t\t(Z_DEVICE_EXPORT(node_id);))))\n\n#define EVENT_ICU_IRQ(channel) BSP_PRV_IELS_ENUM(CONCAT(EVENT_ICU_IRQ, channel))\n\n#define GPIO_INTERRUPT_INIT(index)                                                                 \\\n\tstatic const struct gpio_ra_irq_config gpio_ra_irq_config##index = {                       \\\n\t\t.reg = DT_INST_REG_ADDR(index),                                                    \\\n\t\t.channel = DT_INST_PROP(index, channel),                                           \\\n\t\t.trigger =                                                                         \\\n\t\t\tDT_INST_ENUM_IDX_OR(index, renesas_trigger, EXT_INTERRUPT_EDGE_FALLING),   \\\n\t\t.digital_filter = DT_INST_PROP_OR(index, renesas_digital_filtering, false),        \\\n\t\t.sample_clock = UTIL_CAT(EXT_INTERRUPT_SAMPLE_CLOCK_DIV_,                          \\\n\t\t\t\t\t DT_INST_PROP_OR(index, renesas_sample_clock_div, 1)),     \\\n\t\t.irq = DT_INST_IRQ(index, irq),                                                    \\\n\t};                                                                                         \\\n\tstatic struct gpio_ra_irq_data gpio_ra_irq_data##index;                                    \\\n\tstatic int gpio_ra_irq_init##index(const struct device *dev)                               \\\n\t{                                                                                          \\\n\t\tR_ICU-\u003eIELSR[DT_INST_IRQ(index, irq)] =                                            \\\n\t\t\tEVENT_ICU_IRQ(DT_INST_PROP(index, channel));                               \\\n                                                                                                   \\\n\t\tBSP_ASSIGN_EVENT_TO_CURRENT_CORE(EVENT_ICU_IRQ(DT_INST_PROP(index, channel)));     \\\n                                                                                                   \\\n\t\tIRQ_CONNECT(DT_INST_IRQ(index, irq), DT_INST_IRQ(index, priority), gpio_ra_isr,    \\\n\t\t\t    DEVICE_DT_INST_GET(index), 0);                                         \\\n\t\treturn gpio_ra_interrupt_init(dev);                                                \\\n\t};                                                                                         \\\n\tDEVICE_DT_INST_DEFINE(index, gpio_ra_irq_init##index, NULL, \u0026gpio_ra_irq_data##index,      \\\n\t\t\t      \u0026gpio_ra_irq_config##index, PRE_KERNEL_1, CONFIG_GPIO_INIT_PRIORITY, \\\n\t\t\t      NULL);\n\nDT_INST_FOREACH_STATUS_OKAY(GPIO_INTERRUPT_INIT)\n```\n\ngcc can preprocess this code without errors but simplecpp generates this error:\n```\nsyntax error: failed to expand 'DT_INST_FOREACH_STATUS_OKAY', Wrong number of parameters for macro 'TYPE_SECTION_ITERABLE'.\n```","author":{"url":"https://github.com/danmar","@type":"Person","name":"danmar"},"datePublished":"2025-09-25T19:48:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/549/simplecpp/issues/549"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7be6b361-be23-bc58-d6cc-4d708a35267d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAA78:383777:2FEE874:4222898:6A4F17B9
html-safe-noncee20deb884023b45048cafd365d2109ad25887d58c304b8f8cdbc27b7606f971d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTc4OjM4Mzc3NzoyRkVFODc0OjQyMjI4OTg6NkE0RjE3QjkiLCJ2aXNpdG9yX2lkIjoiNDM0NTU4ODM4ODQwNDIxNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbbd1a5ae4aa3dd33a40c0a4235e4b5bd88c866b1e6cc8649e7df1e60cbfc8dd5
hovercard-subject-tagissue:3454892732
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cppcheck-opensource/simplecpp/549/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e491f7865d422f3fef19f2634b12f29df80ddcddf81be436cab1e5d4be796c75/cppcheck-opensource/simplecpp/issues/549
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e491f7865d422f3fef19f2634b12f29df80ddcddf81be436cab1e5d4be796c75/cppcheck-opensource/simplecpp/issues/549
og:image:altReduced example code: #define DT_DRV_COMPAT renesas_ra_external_interrupt #define DT_FOREACH_OKAY_INST_renesas_ra_external_interrupt(fn) fn(0) fn(1) #define _DO_CONCAT(x, y) x ## y #define _CONCAT(...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedanmar
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
go-importgithub.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git
octolytics-dimension-user_id278097703
octolytics-dimension-user_logincppcheck-opensource
octolytics-dimension-repository_id33434464
octolytics-dimension-repository_nwocppcheck-opensource/simplecpp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33434464
octolytics-dimension-repository_network_root_nwocppcheck-opensource/simplecpp
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b8f23afb982271f1b22258a94aede67a6b77760
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cppcheck-opensource/simplecpp/issues/549#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fissues%2F549
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fissues%2F549
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=cppcheck-opensource%2Fsimplecpp
Reloadhttps://github.com/cppcheck-opensource/simplecpp/issues/549
Reloadhttps://github.com/cppcheck-opensource/simplecpp/issues/549
Reloadhttps://github.com/cppcheck-opensource/simplecpp/issues/549
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/issues/549
cppcheck-opensource https://github.com/cppcheck-opensource
simplecpphttps://github.com/cppcheck-opensource/simplecpp
Notifications https://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Fork 104 https://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Star 263 https://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Code https://github.com/cppcheck-opensource/simplecpp
Issues 82 https://github.com/cppcheck-opensource/simplecpp/issues
Pull requests 31 https://github.com/cppcheck-opensource/simplecpp/pulls
Actions https://github.com/cppcheck-opensource/simplecpp/actions
Wiki https://github.com/cppcheck-opensource/simplecpp/wiki
Security and quality 0 https://github.com/cppcheck-opensource/simplecpp/security
Insights https://github.com/cppcheck-opensource/simplecpp/pulse
Code https://github.com/cppcheck-opensource/simplecpp
Issues https://github.com/cppcheck-opensource/simplecpp/issues
Pull requests https://github.com/cppcheck-opensource/simplecpp/pulls
Actions https://github.com/cppcheck-opensource/simplecpp/actions
Wiki https://github.com/cppcheck-opensource/simplecpp/wiki
Security and quality https://github.com/cppcheck-opensource/simplecpp/security
Insights https://github.com/cppcheck-opensource/simplecpp/pulse
failure to preprocess zephyr (blinky example)https://github.com/cppcheck-opensource/simplecpp/issues/549#top
bughttps://github.com/cppcheck-opensource/simplecpp/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/danmar
danmarhttps://github.com/danmar
on Sep 25, 2025https://github.com/cppcheck-opensource/simplecpp/issues/549#issue-3454892732
bughttps://github.com/cppcheck-opensource/simplecpp/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.