diff options
author | Armin Rigo <arigo@tunes.org> | 2016-01-03 12:17:01 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2016-01-03 12:17:01 +0100 |
commit | cc01e4cfe25742bd2a2f546e964d41c2a1dc56ab (patch) | |
tree | 3ed0f14ae8a41442a533a38e8e1a2494250c18ad | |
parent | 4b24b7da9b6f941a154226d04bfdde3129707d86 (diff) | |
download | cffi-cc01e4cfe25742bd2a2f546e964d41c2a1dc56ab.tar.gz |
possibly clarify example by using the syntax that allows naturally
to write a bunch of functions
-rw-r--r-- | demo/embedding.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/demo/embedding.py b/demo/embedding.py index 411d86f..c04b02a 100644 --- a/demo/embedding.py +++ b/demo/embedding.py @@ -3,7 +3,9 @@ import cffi ffi = cffi.FFI() ffi.cdef(""" - extern "Python" int add(int, int); + extern "Python" { + int add(int, int); + } """, dllexport=True) ffi.embedding_init_code(""" |