Incase it doesn’t show up:

  • pelya@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    I know at least three ways, one of them involves variadic macros.

    You don’t even need to look that far, take any sufficiently aged library, like OpenGL.

      • pelya@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        Yet I still had an urge to explain an obvious thing. Because it’s C++, so everyhing goes. There are even tools to auto-generate C++ interfaces, because of course someone decided that C++ is inadequate and must be improved using some kind of poorly-documented ad-hoc extension language on top of C++.