JanetDocsI'm feeling luckyGithub sign in

os/arch



    cfunction

    (os/arch)
    
    Check the ISA that janet was compiled for. Returns one of:
    
      :x86
      :x86-64
      :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
cellularmitosis