Skip to content

Commit ea824f3

Browse files
Add SwitchStore and CaseLet (#594)
* wip * ttt * simplfiy * wip * wip * wip * wip * wip * wip * wip * wip * fix * wip * wip * wip * wip * wip * wip * wip * wip * wip * docs * wip * wip * wip * wip * wip * updates * revert ttt stuff' * xcode 11 fixes Co-authored-by: Stephen Celis <[email protected]>
1 parent 6000fd3 commit ea824f3

File tree

3 files changed

+927
-135
lines changed

3 files changed

+927
-135
lines changed

Sources/ComposableArchitecture/Internal/Breakpoint.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import Darwin
33
#endif
44
/// Raises a debug breakpoint iff a debugger is attached.
5-
@inline(__always) func breakpoint() {
5+
@inline(__always) func breakpoint(_ message: @autoclosure () -> String = "") {
66
#if DEBUG && canImport(Darwin)
77
// https://github.com/bitstadium/HockeySDK-iOS/blob/c6e8d1e940299bec0c0585b1f7b86baf3b17fc82/Classes/BITHockeyHelper.m#L346-L370
88
var name: [Int32] = [CTL_KERN, KERN_PROC, KERN_PROC_PID, getpid()]
@@ -20,6 +20,8 @@
2020
if isDebuggerAttached {
2121
fputs(
2222
"""
23+
\(message())
24+
2325
Caught debug breakpoint. Type "continue" ("c") to resume execution.
2426
2527
""",

0 commit comments

Comments
 (0)