Issue #132 resolved

#define integer macro not working?

Lev Givon
created an issue

According to the docs for cffi 0.8, it should be possible to #define macros with integer values. When I try to run the following snippet with CPython 2.7.4 and cffi 0.8.1 on Ubuntu Linux 13.10, however ..

import cffi

ffi = cffi.FFI()
ffi.cdef("#define FOO 1")
lib = ffi.verify()
print lib.FOO

.. I observe a CDefError exception with the message

only supports the syntax "#define FOO ..." for now (literally)

Am I missing something?

Comments (3)

  1. Log in to comment