cparser fails on #define FOO +1
Created originally on Bitbucket by aseyboldt
from cffi import FFI
ffi = FFI()
ffi.cdef('#define FOO +1')
The parser used by cdef does not allow unnecessary +
signs in define
:
CDefError: only supports one of the following syntax:
#define FOO ... (literally dot-dot-dot)
#define FOO NUMBER (with NUMBER an integer constant, decimal/hex/octal)
got:
#define FOO +1