diff options
author | Armin Rigo <arigo@tunes.org> | 2016-01-09 18:24:25 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2016-01-09 18:24:25 +0100 |
commit | e7e824c3561171361743b9af89a795811cfdd430 (patch) | |
tree | 4178890894f0c345604a25a589ffa97f9625102b /demo | |
parent | 58b77551cfbfcc7f53600df4a7626684e420358b (diff) | |
download | cffi-e7e824c3561171361743b9af89a795811cfdd430.tar.gz |
Maybe it's clearer this way, with an API that matches the intent rather
than how the implementation piggy-backs on ``extern "Python"``
Diffstat (limited to 'demo')
-rw-r--r-- | demo/embedding.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/demo/embedding.py b/demo/embedding.py index 516373d..40c419f 100644 --- a/demo/embedding.py +++ b/demo/embedding.py @@ -2,11 +2,9 @@ import cffi ffi = cffi.FFI() -ffi.cdef(""" - extern "Python" { - int add(int, int); - } -""", dllexport=True) +ffi.embedding_api(""" + int add(int, int); +""") ffi.embedding_init_code(""" from _embedding_cffi import ffi |