module FFI::Library

def self.extended(mod)

def self.extended(mod)
  raise RuntimeError.new("must only be extended by module") unless mod.kind_of?(Module)
end