1.6.24. Parameter pointer

[<<<] [>>>]

PARAMPTR(x)
THISPARAMPTR

Each command may need some parameters that are persistent during a program execution. For example the file handling routines need an array that associates the opened file handles with the integer values that the basic language uses. Each command may allocate storage and assign a pointer to THISPARAMPTR to point to the allocated space. This is a void pointer initialized to NULL.

A command may access a pointer of another command using the macro PARAMPTR(x) supplying x as the command code. This is usually CMD_XXX with XXX the name of the command, function or operator.

See also ALLOC and FREE


[<<<] [>>>]