From 943a6597b2bcd1b3ed208458a5cba61ad5b4051c Mon Sep 17 00:00:00 2001 From: Nathan Ringo Date: Mon, 18 Nov 2024 00:34:23 -0600 Subject: ... --- src/value.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/value.h') diff --git a/src/value.h b/src/value.h index a932514..3795486 100644 --- a/src/value.h +++ b/src/value.h @@ -1,6 +1,7 @@ #ifndef IMB3_VALUE_H #define IMB3_VALUE_H +#include #include struct value { @@ -35,4 +36,15 @@ enum value_tag { TAG_STANDARD_OBJECT = 0b110, }; +/** + * Allocates a builtin-object with the given class and slot count. + */ +struct value make_builtin_object(struct value class, size_t value_slot_count, + size_t untraced_slot_count); + +/** + * Bootstraps the class heirarchy. This should only be called once. + */ +void bootstrap(void); + #endif // IMB3_VALUE_H -- cgit v1.2.3