Skip to content

PHNT #if directives causes "token is not a valid binary operator in a preprocessor subexpression" #570

Description

@dongle-the-gadget

PHNT includes some #if directives that look like below, and that causes ClangSharpPInvokeGenerator to output "token is not a valid binary operator in a preprocessor subexpression":

#define PHNT_MODE_KERNEL 0

#ifndef PHNT_MODE
#define PHNT_MODE 1
#endif

#if (PHNT_MODE != PHNT_MODE_KERNEL)
// Some real code here
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions