Simple Virtual Machine
A simple but flexible virtual machine
SVM parameters

This module contains API functions to handle SVM parameters. More...

Modules

 SVM value parameters
 This module contains API functions to handle SVM value parameters.
 
 SVM marker parameters
 This module contains API functions to handle SVM marker parameters.
 
 SVM keyword parameters
 This module contains API functions to handle SVM keyword parameters.
 
 SVM structure parameters
 This module contains API functions to handle SVM structure parameters.
 
 SVM variable parameters
 This module contains API functions to handle SVM variable parameters.
 

Functions

SVM_FUNCTION SVM_Parametersvm_parameter_array_new (const void *svm, const SVM_Size argc)
 This function creates an array of parameters. More...
 

Detailed Description

This module contains API functions to handle SVM parameters.

Parameters are special variables used as interface to pass data in instruction and function calls:

Function Documentation

◆ svm_parameter_array_new()

SVM_FUNCTION SVM_Parameter * svm_parameter_array_new ( const void *  svm,
const SVM_Size  argc 
)

This function creates an array of parameters.

Parameters
[in]svmThe SVM pointer passed as first argument of the callback function.
[in]argcThe size of the array.
Returns
A pointer to a C array of SVM_Parameter. Every cell of the array has to be initialised by a parameter before being passed to an API function.
Note
The returned array is a valid SVM variable: its scope can be changed if needed, and the pointer shall not be freed explicitely.
Exceptions
FAILUREinterruption when a parameter is incorrect. (Please refer to the main description page of this API.)