Skip to content
Tcl Source Code Changes To Migrating C extensions to Tcl 9
Login

Changes To Migrating C extensions to Tcl 9

Changes to "Migrating C extensions to Tcl 9" between 2024-11-11 10:44:05 and 2024-11-11 10:45:13

︙
267
268
269
270
271
272
273
274

275
276
277
278
279
280
281
267
268
269
270
271
272
273

274
275
276
277
278
279
280
281







-
+








See the [ticket](https://core.tcl-lang.org/tcl/tktview/6f22c7a1fc) for the specific circumstances when this may happen.

### Threads

Tcl 9.0 is always build with threads enabled.
The macro *TCL_THREADS* is not defined.
A check for threads build may now look like this:
A check for threads build for TCL 8.x and 9 may now look like this:

```
#if (TCL_MAJOR_VERSION < 9) && ! defined(TCL_THREADS)
#error "build requires TCL_THREADS"
#endif
```

︙