lean4-htt/library/Init/System/Platform.lean
Leonardo de Moura a2abbdbf9a chore: fix imports using script
This is just a draft.
```
for f in `find . -name '*.lean'`; do echo $f; gsed "/^import/s/\b\(.\)/\u\1/g" $f > tmp; gsed "/^Import/s/Import/import/g" tmp > $f; done
```
2019-10-04 14:34:58 -07:00

26 lines
635 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_nbits"]
constant getNumBits : Unit → Nat := default _
@[extern "lean_system_platform_windows"]
constant getIsWindows : Unit → Bool := default _
@[extern "lean_system_platform_osx"]
constant getIsOSX : Unit → Bool := default _
def numBits : Nat := getNumBits ()
def isWindows : Bool := getIsWindows ()
def isOSX : Bool := getIsOSX ()
end Platform
end System