summaryrefslogtreecommitdiff
path: root/fnl/util.fnl
blob: ae52bacfcee6e48d613e1cbe5c2a828aa6a8cf69 (plain)
1
2
3
4
5
6
7
8
9
10
;; Utility functions.
(module util)

(defn load-plugin [name]
  (let [(ok? val-or-err) (pcall require name)]
    (when ok?
      (val-or-err))
    (when (not ok?)
      (print "Could not load config: " val-or-err))))