+
Skip to content

Nested #eval causes spurious warning #55

Open
@DaSpudLord

Description

@DaSpudLord

If any meta-macro that does #eval-style evaluation is nested within any other such meta-macro, GPP prints a warning about attempting to redefine the #defined macro. Seems to be caused by the inner #eval attempting to define the #defined macro while the outer #eval has already done so.

Example Input (directly via terminal, in default mode):

$ gpp
#eval #eval x

Output:

stdin:2: warning: the defined(...) macro is already defined
x

This is in GPP 2.27. Same issue occurs if the input is from a file rather than from stdin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载