Sujet : Re: is it possible to have functions with 0, 1, or 2 args?
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.cDate : 05. Aug 2024, 10:45:37
Autres entêtes
Organisation : Stefan Ram
Message-ID : <OPT-20240805104508@ram.dialup.fu-berlin.de>
References : 1 2
ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:
#define NARGS(...) NARGS_(__VA_ARGS__, 5, 4, 3, 2, 1, 0)
Up top, C's totally buggin' about the diff between one argument
and zilch, 'cause that comma in "__VA_ARGS__," is always chillin'
there. We could 86 it with the fresh "__VA_OPT__(,)", but not
all C implementations are down to clown with that yet . . .
Date | Sujet | # | | Auteur |
5 Aug 24 | is it possible to have functions with 0, 1, or 2 args? | 15 | | Mark Summerfield |
5 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Stefan Ram |
5 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 4 | | Stefan Ram |
5 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 2 | | Stefan Ram |
8 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Lawrence D'Oliveiro |
11 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Tim Rentsch |
5 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 6 | | Michael S |
12 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 5 | | Tim Rentsch |
12 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 4 | | Richard Harnden |
12 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 3 | | Tim Rentsch |
12 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 2 | | Richard Harnden |
13 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Tim Rentsch |
5 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Stefan Ram |
5 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Blue-Maned_Hawk |
12 Aug 24 | Re: is it possible to have functions with 0, 1, or 2 args? | 1 | | Tim Rentsch |