Skip to content

Commit ce123d3

Browse files
committed
Link to the stdlib macros that replace things.
1 parent d0bf9e5 commit ce123d3

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

TSPL.docc/ReferenceManual/Expressions.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,15 +596,22 @@ or a playground literal.
596596

597597
> Note:
598598
> Prior to Swift 5.9,
599-
> the following special literals were recognized,
600-
> which are now implemented as macros in the Swift standard library:
599+
> the following special literals were recognized:
601600
> `#column`,
602601
> `#dsohandle`,
603602
> `#fileID`,
604603
> `#filePath`,
605604
> `#file`,
606605
> `#function`,
607606
> and `#line`.
607+
> These are now implemented as macros in the Swift standard library:
608+
> [`column`](https://developer.apple.com/documentation/swift/column),
609+
> [`dsohandle`](https://developer.apple.com/documentation/swift/dsohandle),
610+
> [`fileID`](https://developer.apple.com/documentation/swift/fileID),
611+
> [`filePath`](https://developer.apple.com/documentation/swift/filePath),
612+
> [`file`](https://developer.apple.com/documentation/swift/file),
613+
> [`function`](https://developer.apple.com/documentation/swift/function),
614+
> and [`line`](https://developer.apple.com/documentation/swift/line).
608615
609616
<!--
610617
- test: `pound-file-flavors`

TSPL.docc/ReferenceManual/LexicalStructure.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,7 @@ so they must be escaped with backticks in that context.
380380

381381
> Note:
382382
> Prior to Swift 5.9,
383-
> the following keywords are reserved,
384-
> which are now implemented as macros in the Swift standard library:
383+
> the following keywords were reserved:
385384
> `#column`,
386385
> `#dsohandle`,
387386
> `#error`,
@@ -391,6 +390,16 @@ so they must be escaped with backticks in that context.
391390
> `#function`,
392391
> `#line`,
393392
> and `#warning`.
393+
> These are now implemented as macros in the Swift standard library:
394+
> [`column`](https://developer.apple.com/documentation/swift/column),
395+
> [`dsohandle`](https://developer.apple.com/documentation/swift/dsohandle),
396+
> [`error(_:)`](https://developer.apple.com/documentation/swift/error(_:)),
397+
> [`fileID`](https://developer.apple.com/documentation/swift/fileID),
398+
> [`filePath`](https://developer.apple.com/documentation/swift/filePath),
399+
> [`file`](https://developer.apple.com/documentation/swift/file),
400+
> [`function`](https://developer.apple.com/documentation/swift/function),
401+
> [`line`](https://developer.apple.com/documentation/swift/line),
402+
> and [`warning(_:)`](https://developer.apple.com/documentation/swift/warning(_:)).
394403
395404
<!--
396405
Token.py includes #assert,

0 commit comments

Comments
 (0)