Skip to content

Commit 921c173

Browse files
committed
Add debugger and bookmark macros for FlowStorm ergonomics
1 parent aced125 commit 921c173

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44

55
### New Features
66
7+
### Changes
8+
9+
- Add debugger and bookmark macros for FlowStorm ergonomics
10+
11+
### Bugs fixed
12+
13+
## 1.11.132-7 (30-10-2024)
14+
15+
### New Features
16+
717
### Changes
818

919
- Add cljs.storm.utils to compiler cljs path to get rid of a weird warning

src/main/clojure/cljs/core.cljc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3489,3 +3489,20 @@
34893489
resolved (vary-meta (:name var) assoc ::ana/no-resolve true)]
34903490
`(when (exists? ~resolved)
34913491
(cljs.core/Var. (fn [] ~resolved) '~resolved ~meta))))
3492+
3493+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3494+
;; This is kind of hacky since it is only useful with FlowStorm, ;;
3495+
;; but I haven't found a way of injecting this macros from FlowStorm code ;;
3496+
;; so they are available to users without requiring anything. ;;
3497+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3498+
3499+
(core/defmacro bookmark
3500+
([note]
3501+
`(vary-meta (symbol "flow-storm" "bookmark")
3502+
assoc
3503+
:flow-storm.bookmark/note ~(pr-str note)))
3504+
([] `(bookmark nil)))
3505+
3506+
(core/defmacro debugger
3507+
[& args]
3508+
`(bookmark ~@args))

0 commit comments

Comments
 (0)