blueloveTH 1 anno fa
parent
commit
8b32296c9c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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
 static_assert(sizeof(py_CFunction) <= 8, "sizeof(py_CFunction) > 8");
 static_assert(sizeof(py_TValue) == 16, "sizeof(py_TValue) != 16");
+static_assert(offsetof(py_TValue, extra) == 4, "offsetof(py_TValue, extra) != 4");