Skip to content

Commit b80e523

Browse files
Change __FUNCTION__ to #function
1 parent 4ce221a commit b80e523

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SQLite/Helpers.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ extension String {
8888

8989
}
9090

91-
@warn_unused_result func infix<T>(lhs: Expressible, _ rhs: Expressible, wrap: Bool = true, function: String = __FUNCTION__) -> Expression<T> {
91+
@warn_unused_result func infix<T>(lhs: Expressible, _ rhs: Expressible, wrap: Bool = true, function: String = #function) -> Expression<T> {
9292
return function.infix(lhs, rhs, wrap: wrap)
9393
}
9494

95-
@warn_unused_result func wrap<T>(expression: Expressible, function: String = __FUNCTION__) -> Expression<T> {
95+
@warn_unused_result func wrap<T>(expression: Expressible, function: String = #function) -> Expression<T> {
9696
return function.wrap(expression)
9797
}
9898

99-
@warn_unused_result func wrap<T>(expressions: [Expressible], function: String = __FUNCTION__) -> Expression<T> {
99+
@warn_unused_result func wrap<T>(expressions: [Expressible], function: String = #function) -> Expression<T> {
100100
return function.wrap(", ".join(expressions))
101101
}
102102

0 commit comments

Comments
 (0)