Function part
A function part is a logical unit that either contains the first code in the program or is invoked from another function. The function that contains the first code in the program is called main.
The function part can include the following properties:
- A return value, which describes the data that the function part returns to the caller
- A set of parameters, each of which references memory that is allocated and passed by another logic part
- A set of other variables, each of which allocates other memory that is local to the function
- EGL statements
- A specification as to whether the function requires the program context, as described in containerContextDependent
The function main is unusual in that it cannot return a value or include parameters, and it must be declared inside a program part.
Related concepts
Parts
Program part
References to variables and constants
SQL support
Related reference
containerContextDependent
Data initialization
EGL source format
Function invocations
EGL statements