X Tutup
Skip to content

src/pigui/Face.h & src/gameui/Face.h both "export" the same enum #4801

@Gliese852

Description

@Gliese852

Observed behaviour

After rescan enums with scripts/scan_enums.py, the project does not build and shows an error:

enum_table.cpp:286:44: error: redefinition of ‘const EnumItem ENUM_GameUIFaceFlags []’ const struct EnumItem ENUM_GameUIFaceFlags[] = {

Comparing these two files, you can see that they contain the same instructions for the script:

enum Flags { // <enum scope='GameUI::Face' name=GameUIFaceFlags public>

enum Flags { // <enum scope='GameUI::Face' name=GameUIFaceFlags public>

The question is can we just rename GameUI to PIGUI in src/pigui/Face.h ?

Expected behaviour

Successful recompilation after rescan.

Steps to reproduce

  1. run ./scripts/scan_enums.py --pattern="*.h" -r -o ./src/enum_table.cpp ./src
  2. run build

My pioneer version (and OS):
current master f7f4abd

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

      X Tutup