janet/tools/patch-header.janet

4 lines
152 B
Plaintext

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