module FFI::Platform

def self.bsd?

Returns:
  • (Boolean) -
def self.bsd?
  IS_BSD
end

def self.is_os(os)

Returns:
  • (Boolean) -

Parameters:
  • os (String) --
def self.is_os(os)
  OS == os
end

def self.mac?

Returns:
  • (Boolean) -
def self.mac?
  IS_MAC
end

def self.unix?

Returns:
  • (Boolean) -
def self.unix?
  !IS_WINDOWS
end

def self.windows?

Returns:
  • (Boolean) -
def self.windows?
  IS_WINDOWS
end