OSDN Git Service

The small context diff below corrects what seems to be an oversight in
authorBruce Momjian <bruce@momjian.us>
Thu, 12 Sep 2002 00:26:42 +0000 (00:26 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 12 Sep 2002 00:26:42 +0000 (00:26 +0000)
commit7184a428a2f8d78b3165f7939e3f44ade01a90f2
tree1d62fbc85b4140c5e8770faf30918a3979fa5281
parente57ab0456506b3f68b4d8f446c58e6677e120294
The small context diff below corrects what seems to be an oversight in
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.
src/include/fmgr.h