JanetDocsPlaygroundI'm feeling luckyGitHub sign in

os/arch



    cfunction
    src/core/os.c on line 164, column 1

    (os/arch)

    Check the ISA that janet was compiled for. Returns one of:

    * :x86

    * :x64

    * :arm

    * :aarch64

    * :sparc

    * :wasm

    * :unknown


1 exampleSign in to add an example
Loading...
# on a Core i5-4590:
(os/arch)  # => :x64

# on an Intel Atom N270:
(os/arch)  # => :x86

# on a raspberry pi:
(os/arch)  # => :arm
cellularmitosisPlayground