core: add new enhanced object module

This commit is contained in:
2025-08-16 16:03:55 +01:00
parent 3f2558cac3
commit c65541ac62
15 changed files with 1684 additions and 1 deletions

18
object/class.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef _CLASS_H_
#define _CLASS_H_
#include <blue/core/error.h>
#include <blue/core/misc.h>
#include <stdint.h>
struct b_type_registration;
struct _b_class {
uint64_t c_magic;
const struct b_type_registration *c_type;
};
extern b_result b_class_instantiate(
struct b_type_registration *type, struct _b_class **out);
#endif