summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-04-10 17:09:13 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-04-11 08:31:56 -0400
commit7b230bc8486e7d451113c3c0301adcecfc09b893 (patch)
tree2ac7605c3e79abd07aabb347c26ee64519d36732 /object.c
parent0196c8527b619b685399e9a3ce6b5b4c7e30368a (diff)
downloadruby-7b230bc8486e7d451113c3c0301adcecfc09b893.tar.gz
[DOC] Documentation for flags of RObject
Diffstat (limited to 'object.c')
-rw-r--r--object.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/object.c b/object.c
index 24cbdd516f..94e85ed316 100644
--- a/object.c
+++ b/object.c
@@ -42,6 +42,18 @@
#include "builtin.h"
#include "shape.h"
+/* Flags of RObject
+ *
+ * 1: ROBJECT_EMBED
+ * The object has its instance variables embedded (the array of
+ * instance variables directly follow the object, rather than being
+ * on a separately allocated buffer).
+ * if !SHAPE_IN_BASIC_FLAGS
+ * 4-19: SHAPE_FLAG_MASK
+ * Shape ID for the object.
+ * endif
+ */
+
/*!
* \addtogroup object
* \{