Sha256: a2ed78338d84a21aabbeee9ecbd17d89cb21290b4607e360086510c2da33b742

Contents?: true

Size: 207 Bytes

Versions: 3

Compression:

Stored size: 207 Bytes

Contents

require 'ffi'

module GirFFI
  module LibC
    extend FFI::Library
    ffi_lib FFI::Library::LIBC
    
    attach_function :malloc, [:size_t], :pointer
    attach_function :free, [:pointer], :void
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.0.3 lib/gir_ffi/lib_c.rb
gir_ffi-0.0.2 lib/gir_ffi/lib_c.rb
gir_ffi-0.0.1 lib/gir_ffi/lib_c.rb