module FFI::Platform
This module defines different constants and class methods to play with various platforms.
Constants
- ARCH
- BIG_ENDIAN
- BYTE_ORDER
- CONF_DIR
- CPU
- IS_BSD
- IS_DRAGONFLYBSD
- IS_FREEBSD
- IS_GNU
- IS_LINUX
- IS_MAC
- IS_NETBSD
- IS_OPENBSD
- IS_SOLARIS
- IS_WINDOWS
- LIBC
- LIBPREFIX
- LIBSUFFIX
- LITTLE_ENDIAN
- NAME
- OS
- OSVERSION
Public Class Methods
Test if current OS
is a *BSD (include MAC) @return [Boolean]
# File lib/ffi/platform.rb, line 158 def self.bsd? IS_BSD end
@param [String) os @return [Boolean] Test if current OS
is os
.
# File lib/ffi/platform.rb, line 92 def self.is_os(os) OS == os end
Test if current OS
is Windows @return [Boolean]
# File lib/ffi/platform.rb, line 164 def self.windows? IS_WINDOWS end