Author: Armin Rigo <[email protected]>
Branch: static-callback-embedding
Changeset: r2519:44da071e1d45
Date: 2016-01-03 12:17 +0100
http://bitbucket.org/cffi/cffi/changeset/44da071e1d45/
Log: possibly clarify example by using the syntax that allows naturally
to write a bunch of functions
diff --git a/demo/embedding.py b/demo/embedding.py
--- a/demo/embedding.py
+++ b/demo/embedding.py
@@ -3,7 +3,9 @@
ffi = cffi.FFI()
ffi.cdef("""
- extern "Python" int add(int, int);
+ extern "Python" {
+ int add(int, int);
+ }
""", dllexport=True)
ffi.embedding_init_code("""
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit