YAC 3.18.0
Yet Another Coupler
Loading...
Searching...
No Matches
param_int.h File Reference
#include "param.h"
Include dependency graph for param_int.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct yac_paramyac_param_int_new (const char *name, int *value_ptr, int default_value, int value_min, int value_max, int has_default, int is_defined)
 Create an int parameter.
 

Function Documentation

◆ yac_param_int_new()

struct yac_param * yac_param_int_new ( const char * name,
int * value_ptr,
int default_value,
int value_min,
int value_max,
int has_default,
int is_defined )

Create an int parameter.

Parameters
nameName of the parameter (copied internally, may be NULL for unnamed)
value_ptrPointer to the int value
default_valueDefault value (ignored if has_default is false)
value_minMinimum allowed value (inclusive)
value_maxMaximum allowed value (inclusive)
has_defaultIf true, parameter has a default value; if false, value is undefined until set
is_definedIf true, initial value is considered defined; if false, initial value is considered undefined and user must set it before getting
Returns
Pointer to new parameter handle

Definition at line 157 of file param_int.c.

Here is the caller graph for this function: