core: type: fix registration of types that extend something other than b_object

This commit is contained in:
2025-10-24 12:29:24 +01:00
parent 36b624849c
commit ed105307c7
2 changed files with 10 additions and 2 deletions

View File

@@ -24,10 +24,15 @@ typedef const union b_type {
unsigned char b[16];
} *b_type;
typedef enum b_type_flags {
B_TYPE_F_ABSTRACT = 0x01u,
} b_type_flags;
typedef struct b_type_info {
union b_type t_id;
union b_type t_parent_id;
const char *t_name;
b_type_flags t_flags;
union b_type t_interfaces[B_TYPE_MAX_INTERFACES];
size_t t_nr_interfaces;
size_t t_class_size;