Update examples for Rust master
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user