1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-17 22:24:49 +00:00
janet/tools/patch-header.janet

4 lines
149 B
Clojure

# Patch janet.h
(def [_ janeth janetconf output] (dyn :args))
(spit output (peg/replace `#include "janetconf.h"` (slurp janetconf) (slurp janeth)))