Overview
| Artifact ID: | 2fb76d6e6f893f61aeda1136b86f3152d3aaa94698d77f82622c04327cab991e |
|---|---|
| Ticket: | eeddb0693a950be980a66de3811630a00c7bab54
TIP #491 implementation has odd #ifdef usage |
| User & Date: | dkf on 2018-05-21 10:08:50 |
Changes
- closedate changed to: "2458259.92281192"
- closer changed to: "dkf"
- icomment:
I was approving the: <pre> #ifndef TCL_THREADS # define TCL_THREADS 1 #endif </pre> It was the fact that <strong>after</strong> that, we can just use: <pre> #if TCL_THREADS </pre> since we can know that TCL_THREADS is definitely defined. If it wasn't, the ifndef/define pair would have set it to 1. In other words, everything that includes tcl.h will define TCL_THREADS so <code>!defined(TCL_THREADS)</code> is a constant (zero), and we assume that it is boolean (which I also approve of). <p> Basically, <code>#if !defined(TCL_THREADS) || TCL_THREADS</code> can now become just <code>#if TCL_THREADS</code> with no ill-effects that I can think of.
- login: "dkf"
- mimetype: "text/html"