vs-code-cython
vs-code-cython copied to clipboard
IF keyword after indentation from 'cdef extern from ""' not recognized
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