Skip to content

Include macros.h#1241

Merged
SteffenL merged 1 commit into
webview:masterfrom
SteffenL:include-macros
Feb 13, 2025
Merged

Include macros.h#1241
SteffenL merged 1 commit into
webview:masterfrom
SteffenL:include-macros

Conversation

@SteffenL

Copy link
Copy Markdown
Collaborator

Re-enables code syntax highlighting in code editors for files that enable code based on whether platform/backend-specific macros are defined.

Example:

#if defined(WEBVIEW_PLATFORM_LINUX) && defined(WEBVIEW_GTK)
#endif

Without the macros.h header, WEBVIEW_PLATFORM_LINUX and WEBVIEW_GTK would by default appear to be undefined in code editors.

Re-enables code syntax highlighting in code editors for files that enable
code based on whether platform/backend-specific macros are defined.

Example:

    #if defined(WEBVIEW_PLATFORM_LINUX) && defined(WEBVIEW_GTK)
    #endif

Without the macros.h header, WEBVIEW_PLATFORM_LINUX and WEBVIEW_GTK would
by default appear to be undefined in code editors.
@SteffenL SteffenL merged commit 48cbaf5 into webview:master Feb 13, 2025
@SteffenL SteffenL deleted the include-macros branch February 13, 2025 06:55
@SteffenL SteffenL added the type: improvement Pull request is an improvement of an existing feature label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: improvement Pull request is an improvement of an existing feature

Development

Successfully merging this pull request may close these issues.

1 participant