add importable trace macro
This commit is contained in:
parent
2743c3ece0
commit
0c3091632f
@ -1,5 +1,6 @@
|
||||
(local { : Gtk : Gdk : WebKit2 : cairo } (require :lgi))
|
||||
(local { : view } (require :fennel))
|
||||
(import-macros {: trace} :macros)
|
||||
|
||||
(fn new-buffer [name]
|
||||
(var property-change-listener nil)
|
||||
|
@ -1,6 +1,7 @@
|
||||
(local { : Gdk } (require :lgi))
|
||||
(local { : view } (require :fennel))
|
||||
(local lume (require :lume))
|
||||
(import-macros {: trace} :macros)
|
||||
|
||||
(local modifier-keyvals
|
||||
;; we need to detect and discard modifier-only key events when
|
||||
|
7
macros.fnl
Normal file
7
macros.fnl
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
(fn trace [x]
|
||||
`(do
|
||||
(print :trace ,(view x) (view ,x))
|
||||
,x))
|
||||
|
||||
{ : trace }
|
Loading…
Reference in New Issue
Block a user