Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Foundation
- func __pretty_function__(_ file:String = #file, function:String = #function, line:Int = #line) {
- #if DEBUG
- print("file:\(file.lastPathComponent)\n function:\(function)\n line:\(line)")
- #endif
- }
Advertisement
Add Comment
Please, Sign In to add comment