Advertisement
Guest User

Untitled

a guest
Sep 14th, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. [john@xeonpwr embed]$ cat embed.rb
  2. require 'ffi'
  3.  
  4. Hello module
  5. extend FFI::Library
  6. ffi_lib 'target/release/libembed.dylib'
  7. attach_function : process, [],:void
  8. end
  9.  
  10. Hello .process
  11.  
  12. puts 'Completed!'
  13. [john@xeonpwr embed]$ ruby embed.rb
  14. embed.rb:4: class/module name must be CONSTANT
  15. extend FFI::Library
  16. embed.rb:6: syntax error, unexpected ':', expecting `end'
  17. attach_function : process, [],:void
  18. embed.rb:6: syntax error, unexpected ',', expecting '.' or &. or :: or '['
  19. ... attach_function : process, [],:void
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement