summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
authorNathan Ringo <nathan@remexre.com>2024-11-18 00:34:23 -0600
committerNathan Ringo <nathan@remexre.com>2024-11-18 00:34:23 -0600
commit943a6597b2bcd1b3ed208458a5cba61ad5b4051c (patch)
treed0acf34996941417aca241f5f01e399aaa90af39 /src/value.h
parent57331ba9756df043b5c665aa4952a0a7b38799e5 (diff)
...
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h12
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