diff options
author | Armin Rigo <arigo@tunes.org> | 2015-12-01 16:08:37 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2015-12-01 16:08:37 +0100 |
commit | b36d4109c4e66e59bdef6318aedc55632306612b (patch) | |
tree | 251987ee81cd730f6cc4d2a5d9193a4effa0f3db /demo | |
parent | cb999cd1b28d01a81f994ce4798acec7a4086d4a (diff) | |
download | cffi-b36d4109c4e66e59bdef6318aedc55632306612b.tar.gz |
Trying out this way for now
Diffstat (limited to 'demo')
-rw-r--r-- | demo/embedding.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/demo/embedding.py b/demo/embedding.py index 4e3d71c..cdfbcdb 100644 --- a/demo/embedding.py +++ b/demo/embedding.py @@ -2,9 +2,11 @@ import cffi ffi = cffi.FFI() -ffi.export_cdef(""" +ffi.cdef(""" extern "Python" int add(int, int); -""", """ +""", dllexport=True) + +ffi.embedding_init_code(""" from _embedding_cffi import ffi, lib @ffi.def_extern() |