Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Duplicate Include Directives in Code Generation #729

Open
Paulo-Pecegueiro opened this issue Feb 12, 2025 · 0 comments
Open

Bug: Duplicate Include Directives in Code Generation #729

Paulo-Pecegueiro opened this issue Feb 12, 2025 · 0 comments
Milestone

Comments

@Paulo-Pecegueiro
Copy link

Image

Issue at:

source = `#ifdef __has_include

Proposed Workaround: A quick solution to prevent this duplication:

                if (!source.includes('#ifdef __has_include')) {
                    source = `#ifdef __has_include
#if __has_include("lvgl.h")
    #ifndef LV_LVGL_H_INCLUDE_SIMPLE
        #define LV_LVGL_H_INCLUDE_SIMPLE
    #endif
#endif

#endif
${source}`;

@mvladic mvladic added this to the 0.23.0 milestone Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants