Skip to content

Defining an alias to _has_include fails #260

Description

@martis42

Preprocessing code which creates an alias to _has_include() via #define FOO _has_include cannot be processed with wave.
A real world example for this is googletest, see here: https://github.com/google/googletest/blob/52eb8108c5bdec04579160ae17225d66034bd723/googletest/include/gtest/internal/gtest-port.h#L277-L281

A minimal test case for this is

#define HAS_INCLUDE __has_include
#if HAS_INCLUDE(<header>)
#endif

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions