vs-code-cython icon indicating copy to clipboard operation
vs-code-cython copied to clipboard

IF keyword after indentation from 'cdef extern from ""' not recognized

Open irvinren opened this issue 1 year ago • 0 comments

Conditional Statements "IF" not recognized as keyword after indentation: according to https://cython.readthedocs.io/en/latest/src/userguide/language_basics.html#conditional-statements

The IF statement can be used to conditionally include or exclude sections of code at compile time. It works in a similar way to the #if preprocessor directive in C.

cdef extern from "atomic_csource_unix.h" nogil: IF UNAME_SYSNAME == 'Windows': bint test_variable

irvinren avatar Nov 27 '24 09:11 irvinren