JanetDocsPlaygroundI'm feeling luckyGitHub sign in

os/which



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

    (os/which)

    Check the current operating system. Returns one of:

    * :windows

    * :macos

    * :web - Web assembly (emscripten)

    * :linux

    * :freebsd

    * :openbsd

    * :netbsd

    * :posix - A POSIX compatible system (default)

    May also return a custom keyword specified at build time.


1 exampleSign in to add an example
Loading...
(os/which)  # => :macos
cellularmitosisPlayground