summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2016-01-03 12:17:01 +0100
committerArmin Rigo <arigo@tunes.org>2016-01-03 12:17:01 +0100
commitcc01e4cfe25742bd2a2f546e964d41c2a1dc56ab (patch)
tree3ed0f14ae8a41442a533a38e8e1a2494250c18ad /demo
parent4b24b7da9b6f941a154226d04bfdde3129707d86 (diff)
downloadcffi-cc01e4cfe25742bd2a2f546e964d41c2a1dc56ab.tar.gz
possibly clarify example by using the syntax that allows naturally
to write a bunch of functions
Diffstat (limited to 'demo')
-rw-r--r--demo/embedding.py4
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("""