lean4-htt/src/Init/System/Platform.lean
Leonardo de Moura cca3bad0bb feat: add Prelude.lean
`Prelude.lean` has no dependencies, and
at the end of `Prelude`, the `syntax` and `macro` commands are operational.
2020-11-10 18:08:18 -08:00

19 lines
485 B
Text

/-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Nat.Basic
namespace System
namespace Platform
@[extern "lean_system_platform_windows"] constant getIsWindows : Unit → Bool
@[extern "lean_system_platform_osx"] constant getIsOSX : Unit → Bool
def isWindows : Bool := getIsWindows ()
def isOSX : Bool := getIsOSX ()
end Platform
end System