D Programming Language 2.0

- Comments
- D
- Search
- Home

Last update Mon Oct 24 15:54:52 2011

# std.system

Information about the target operating system, environment, and CPU.

License:
Boost License 1.0.

Authors:
Walter Bright and Jonathan M Davis

Source:
std/system.d

enum OS;
  Operating system.

  Note:
  This is for cases where you need a value representing the OS at runtime. If you're doing something which should compile differently on different OSes, then please use version(Win32), version(linux), etc.

  See Also:
  Predefined Versions

  win32
    Microsoft 32 bit Windows systems

  linux
    All Linux Systems

  osx
    Mac OS X

  freeBSD
    FreeBSD

  solaris
    Solaris

  otherPosix
    Other Posix Systems

immutable OS os;
  The OS that the program was compiled for.

enum Endian;
  Byte order endianness.

  Note:
  This is intended for cases where you need to deal with endianness at runtime. If you're doing something which should compile differently depending on whether you're compiling on a big endian or little endian machine, then please use version(BigEndian) and version(LittleEndian).

  See Also:
  Predefined Versions

  bigEndian
    Big endian byte order

  littleEndian
    Little endian byte order

immutable Endian endian;
  The endianness that the program was compiled for.

Copyright Digital Mars 2000 - 2011 | Page generated by Ddoc.