summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-12-01 16:08:37 +0100
committerArmin Rigo <arigo@tunes.org>2015-12-01 16:08:37 +0100
commitb36d4109c4e66e59bdef6318aedc55632306612b (patch)
tree251987ee81cd730f6cc4d2a5d9193a4effa0f3db /demo
parentcb999cd1b28d01a81f994ce4798acec7a4086d4a (diff)
downloadcffi-b36d4109c4e66e59bdef6318aedc55632306612b.tar.gz
Trying out this way for now
Diffstat (limited to 'demo')
-rw-r--r--demo/embedding.py6
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()