diff options
Diffstat (limited to 'src/value.h')
-rw-r--r-- | src/value.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 <stddef.h> #include <stdint.h> 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 |