Boopsi Object structure
Source position: intuition.pas line 2933
type t_Object = record |
||
o_Node: tMinNode; |
|
|
o_Class: pIClass; |
|
Class pointer |
end; |
We have this, the instance data of the root class, PRECEDING the 'object'. This is so that Gadget objects are Gadget pointers, and so on. If this structure grows, it will always have o_Class at the end, so the macro OCLASS(o) will always have the same offset back from the pointer returned from NewObject().