mirror of
https://github.com/janet-lang/janet
synced 2024-11-16 21:54:48 +00:00
172261b89f
This target will be used to check if an installation of Janet is on the PATH, if native modules can be built and used via the cook module, etc.
12 lines
192 B
Clojure
12 lines
192 B
Clojure
(import cook)
|
|
|
|
(cook/make-native
|
|
:name "testmod"
|
|
:source @["testmod.c"])
|
|
|
|
(import build/testmod :as testmod)
|
|
|
|
(if (not= 5 (testmod/get5)) (error "testmod/get5 failed"))
|
|
|
|
(print "OK!")
|