summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/chain.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/chain.h b/src/chain.h
index d33fa2d..ee3d36a 100644
--- a/src/chain.h
+++ b/src/chain.h
@@ -23,6 +23,13 @@
// Struct definition
//
+/*
+ * Note that the Chain object should always be a Plain Old Data (POD) object,
+ * because it is used from within JIT-generated assembly code, so we need to
+ * be able to refer to its data members using the C macro offsetof. This is
+ * only possible in case of a POD object.
+ */
+
struct Chain {
Chain* next;
};