22 lines
606 B
Text
22 lines
606 B
Text
#lang lean4
|
|
/-
|
|
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_nbits"] constant getNumBits : Unit → Nat
|
|
@[extern "lean_system_platform_windows"] constant getIsWindows : Unit → Bool
|
|
@[extern "lean_system_platform_osx"] constant getIsOSX : Unit → Bool
|
|
|
|
def numBits : Nat := getNumBits ()
|
|
def isWindows : Bool := getIsWindows ()
|
|
def isOSX : Bool := getIsOSX ()
|
|
|
|
end Platform
|
|
end System
|