summaryrefslogtreecommitdiff
path: root/demo/embedding.py
diff options
context:
space:
mode:
Diffstat (limited to 'demo/embedding.py')
-rw-r--r--demo/embedding.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/demo/embedding.py b/demo/embedding.py
deleted file mode 100644
index b15c050..0000000
--- a/demo/embedding.py
+++ /dev/null
@@ -1,21 +0,0 @@
-import cffi
-
-ffibuilder = cffi.FFI()
-
-ffibuilder.embedding_api("""
- int add(int, int);
-""")
-
-ffibuilder.embedding_init_code("""
- from _embedding_cffi import ffi
- print("preparing") # printed once
-
- @ffi.def_extern()
- def add(x, y):
- print("adding %d and %d" % (x, y))
- return x + y
-""")
-
-ffibuilder.set_source("_embedding_cffi", "")
-
-ffibuilder.compile(verbose=True)