Fusion:Object

Objects are implemented on top of fusion reactors and reference counters.

Your object structure must have a FusionObject structure as its first member (which is typically called object), like this: struct _MyObject {     FusionObject   object; /* your object-specific data here */ } typedef struct _MyOject MyObject;

By putting FUSION_OBJECT_METHODS macro in your header, you get a bunch of inline functions for your object. You tell it the type name of your object structure and also a prefix (e.g. “my_object”) that will be prepended to all the function names. The functions declared are:

TODO: Describe how to implement and use objects...