Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903630

jextract emits duplicate symbols for macro clashing with enum constants

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      Consider this program:

      enum EPOLL_EVENTS
        {
          EPOLLONESHOT = 1u << 30,
      #define EPOLLONESHOT EPOLLONESHOT
        };

      The generated code contains a definition for EPOLLONESHOT twice (one for the enum constant, one for the macro).

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: