NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
unsigned long addressOfEx ( variant  data,
bool  relative 
)
inline

Get the absolute or relative address of a variable.

Get the absolute or relative address of a variable and return it to the calling routine as an unsigned long value. The relative address is an offset from the Command module's MemoryPool address.

Warning
This function requires the enhanced NBC/NXC firmware version 1.28+.
Parameters
dataA variable whose address you wish to get.
relativeA boolean flag indicating whether you want to get the relative or absolute address.
Returns
The absolute or relative address of the variable.
Examples:
ex_addressofex.nxc.