8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8a53d0 commit c26c6f8Copy full SHA for c26c6f8
tools/geninterop/geninterop.py
@@ -243,25 +243,9 @@ def gen_interop_code(members):
243
244
namespace Python.Runtime
245
{
246
- [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
247
- internal class TypeOffset
+ [StructLayout(LayoutKind.Sequential)]
+ internal static partial class TypeOffset
248
249
- static TypeOffset()
250
- {
251
- Type type = typeof(TypeOffset);
252
- FieldInfo[] fi = type.GetFields();
253
- int size = IntPtr.Size;
254
- for (int i = 0; i < fi.Length; i++)
255
256
- fi[i].SetValue(null, i * size);
257
- }
258
259
-
260
- public static int magic()
261
262
- return ob_size;
263
264
265
// Auto-generated from PyHeapTypeObject in Python.h
266
""" % (filename, defines_str)
267
0 commit comments