Skip to content

__emit(load.u.pri) with pre/post operators #568

Closed
@Y-Less

Description

@Y-Less

Issue description:

Calling a macro that includes load.u.pri with a parameter that has ++ or -- on totally elides the operator.

Minimal complete verifiable example (MCVE):

#define EXAMPLE(%0) __emit(load.u.pri %0)

main()
{
    new c;
    EXAMPLE(c++);
    printf("%d", c); // Should be 1, is 0.
}

Workspace Information:

  • Compiler version:
  • Command line arguments provided (or sampctl version):
  • Operating System:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions