Skip to content

Commit c9d7c85

Browse files
committed
DOC: clarify the PYWT_TEST_STRUCT_COMPLEX comment in common.h
1 parent ffb4242 commit c9d7c85

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎pywt/_extensions/c/common.h‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@
4444
*
4545
* For templating, the typedef names must not contain spaces.
4646
*
47-
* PYWT_TEST_STRUCT_COMPLEX forces the struct representation (NumPy's C++
48-
* branch) so that the MSVC code path can be compiled and tested with any
49-
* compiler.
47+
* PYWT_TEST_STRUCT_COMPLEX is a testing hook: it swaps in plain structs with
48+
* the same layout and no operators, so that MSVC-like semantics can be
49+
* compiled and tested with any compiler (used by the struct-complex CI job).
50+
* The structs match the ones NumPy's headers use when compiled as C++, where
51+
* C99 `_Complex` is also unavailable.
5052
*/
5153

5254
#ifdef PYWT_TEST_STRUCT_COMPLEX

0 commit comments

Comments
 (0)