JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

janet/config-bits

core-api


    number

    The flag set of config options from janetconf.h which is used to 
    check if native modules are compatible with the host program.


1 exampleSign in to add an example
Loading...
# Janet v1.42.0 -- See %src/include/janet.h.
(defn set? [position] (["not set" "set"] (band janet/config-bits position)))
(printf ```
Configurations:
* NANBOX %s.
* SINGLE_THREADED %s.
* NANBOX_64_POINTER_SHIFT %s.``` (set? 0x1) (set? 0x2) (set? 0x4))
oofoePlayground