Go to the first, previous, next, last section, table of contents.


trt_ext_address

void *
trt_ext_address (tom_object self, int extension_id);

trt_ext_address returns a pointer to the state information of the object self for the state introduced by the extension with the identity extension_id. This is the only legitimate way to obtain a pointer to some state held by some object. The only exception to this rule is the state information introduced by the State class (or instance), which, by definition, resides at offset 0 from self.


Go to the first, previous, next, last section, table of contents.