LibreOffice Module formula (master) 1
Macros
funcvarargs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VAR_ARGS   255
 Used to indicate a variable number of parameters for the Function Wizard. More...
 
#define PAIRED_VAR_ARGS   (VAR_ARGS + VAR_ARGS)
 Used to indicate a variable number of paired parameters for the Function Wizard. More...
 

Macro Definition Documentation

◆ PAIRED_VAR_ARGS

#define PAIRED_VAR_ARGS   (VAR_ARGS + VAR_ARGS)

Used to indicate a variable number of paired parameters for the Function Wizard.

PAIRED_VAR_ARGS if variable number of paired parameters, or PAIRED_VAR_ARGS+number if number of fixed parameters and variable paired arguments following.

See also
VAR_ARGS

Definition at line 45 of file funcvarargs.h.

◆ VAR_ARGS

#define VAR_ARGS   255

Used to indicate a variable number of parameters for the Function Wizard.

VAR_ARGS if variable number of parameters, or VAR_ARGS+number if number of fixed parameters and variable arguments following.

See also
formula::ParaWin
ScFuncDescCore

@NOTE: the value can't be easily changed. If changed then reportdesign/source/ui/misc/FunctionHelper.cxx FunctionDescription::getVarArgsStart() has to provide some backward compatibility for implicit API stability. The new VAR_ARGS value must be significantly greater than the old PAIRED_VAR_ARGS (2*VAR_ARGS) value, in fact greater than any used number of fixed parameters followed by optional paired parameters.

@NOTE: also reportbuilder/java/org/libreoffice/report/pentaho/StarFunctionDescription.java uses a hard coded value in StarFunctionDescription::getArguments() for functionDescription.isInfiniteParameterCount() which though looks like it could be easily adapted.

Definition at line 35 of file funcvarargs.h.