fx: implement a proper value-type mechanism
This commit is contained in:
@@ -21,6 +21,11 @@ FX_TYPE_DEFINITION_BEGIN(fx_object)
|
||||
FX_TYPE_CLASS(fx_object_class);
|
||||
FX_TYPE_DEFINITION_END(fx_object)
|
||||
|
||||
fx_type_id fx_object_query_type(const struct _fx_object *obj)
|
||||
{
|
||||
return &obj->obj_type->ty_id;
|
||||
}
|
||||
|
||||
fx_result fx_object_instantiate(
|
||||
struct fx_type_info *type,
|
||||
struct _fx_object **out_object)
|
||||
|
||||
Reference in New Issue
Block a user