Skip to content

wmax and wmin C funs could be turned into single macro #7309

@jangorecki

Description

@jangorecki

not a big fan of macros but couldn't we do something like and deduplicate wmin and wmax?

#define DEFINE_WINDOWFUN(fname, init_val, op)
DEFINE_WINDOWFUN(wmax, R_NegInf, >=)
DEFINE_WINDOWFUN(wmin, R_PosInf, <=)

Originally posted by @ben-schwen in #7299 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions