Skip to content

Commit

Permalink
add path calculation to ffi.el
Browse files Browse the repository at this point in the history
  • Loading branch information
jkitchin committed Dec 29, 2024
1 parent b33072d commit 731ffb5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ffi.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@

(require 'cl-macs)

(module-load "ffi-module.so")
;; this module is located in the directory where ffi.el is located.
(module-load (expand-file-name
"ffi-module.so"
(file-name-directory load-file-name)))


(gv-define-simple-setter ffi--mem-ref ffi--mem-set t)

Expand Down

0 comments on commit 731ffb5

Please sign in to comment.