Sign in Join
FPDoc Onlineexperiment

CurrentOS function

In unit fpMkUnit

Gets the current operating system

Declaration

pascal
function CurrentOS: string

Function result

Current operating system identifier

Description

CurrentOS returns the current operating system identifier for the running platform. This function provides platform detection for conditional compilation and platform-specific build operations.

The operating system identifier is used to select appropriate compiler options, file paths, and installation procedures for the target platform.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.