blueloveTH 1 year ago
parent
commit
8b32296c9c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      include/pocketpy/objects/base.h

+ 1 - 0
include/pocketpy/objects/base.h

@@ -31,3 +31,4 @@ typedef struct py_TValue {
 // 16 bytes to make py_arg() macro work
 // 16 bytes to make py_arg() macro work
 static_assert(sizeof(py_CFunction) <= 8, "sizeof(py_CFunction) > 8");
 static_assert(sizeof(py_CFunction) <= 8, "sizeof(py_CFunction) > 8");
 static_assert(sizeof(py_TValue) == 16, "sizeof(py_TValue) != 16");
 static_assert(sizeof(py_TValue) == 16, "sizeof(py_TValue) != 16");
+static_assert(offsetof(py_TValue, extra) == 4, "offsetof(py_TValue, extra) != 4");