engine_getvarinfo (void* address,char* name,char *structname,long *offset)

 LC  Returns the type and name of a lite-C variable of the current script, and the name and offset if the variable is an element of a struct. Can be used for real time debugging.

Parameters:

address - pointer of the variable.
name
- pointer to a char[33] array to be set to the name of the variable.
structname - pointer to a char[33] array to be set to the name of the stroct that contains the variable.
offset - offset to the start of the struct in bytes.

Returns:

Type of the variable (see engine_getvar).

Example:

long offset;
char varname[33]; char structname[33]; long offset; ... var MyVar; ... long type = engine_getvarinfo(&MyVar,varname,structname,&offset);

See also:

engine_open, engine_getvar, engine_getscriptinfo

► latest version online