lib/xlearn/ffi.rb in xlearn-0.1.3 vs lib/xlearn/ffi.rb in xlearn-0.1.4
- old
+ new
@@ -1,14 +1,9 @@
module XLearn
module FFI
extend ::FFI::Library
- begin
- ffi_lib XLearn.ffi_lib
- rescue LoadError => e
- raise e if ENV["XLEARN_DEBUG"]
- raise LoadError, "Could not find xLearn"
- end
+ ffi_lib XLearn.ffi_lib
# https://github.com/aksnzhy/xlearn/blob/master/src/c_api/c_api.h
# keep same order
attach_function :XLearnHello, %i[], :int