Update examples for Rust master

This commit is contained in:
Alex Crichton
2015-05-19 09:41:22 -07:00
parent aece96458f
commit 640bfb9da8
9 changed files with 26 additions and 19 deletions

View File

@@ -1,6 +1,12 @@
from ctypes import cdll
from sys import platform
lib = cdll.LoadLibrary('target/libdouble_input.so')
if platform == "darwin":
ext = "dylib"
else:
ext = "so"
lib = cdll.LoadLibrary('target/debug/libdouble_input.' + ext)
double_input = lib.double_input
input = 4