• Bruce Momjian's avatar
    The small context diff below corrects what seems to be an oversight in · 7184a428
    Bruce Momjian authored
    fmgr.h - it's discouraged to access fcinfo directly but there is no
    macro to get the number of arguments passed to the function. Checking
    the number of arguments is often useful when you have a function which
    can be called like:
    
     func('arg');
     func(null);
     func();
    
    all mapping to the same C function.
    
    the macro has a function-like appearance to match the other PG_*
    macros.
    
    Lee Kindness.
    7184a428
fmgr.h 16.4 KB