To avoid having the debug sections being optimised away by the compiler
we use __attribute__((used)) on gcc and clang but in Windows this is
not supported by the Microsoft compiler and there is no equivalent flag.
Unfortunately Windows offers almost no alternative other than exporting
the symbol in the dynamic table or using it somehow.
/* Counter for autogenerated Task names */
uint64_t task_name_counter;
+ /* Pointer to the asyncio debug offset to avoid it to be optimized away
+ by the compiler */
+ void *debug_offsets;
+
} asyncio_state;
static inline asyncio_state *
goto fail;
}
+ state->debug_offsets = &_AsyncioDebug;
+
Py_DECREF(module);
return 0;