1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-29 01:40:26 +00:00
janet/tools/patch-header.janet
2020-11-18 19:37:18 -06:00

4 lines
152 B
Clojure

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