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

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