From cc01e4cfe25742bd2a2f546e964d41c2a1dc56ab Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Sun, 3 Jan 2016 12:17:01 +0100 Subject: possibly clarify example by using the syntax that allows naturally to write a bunch of functions --- demo/embedding.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'demo') 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(""" -- cgit v1.2.1