Skip to content

Instantly share code, notes, and snippets.

@finder39
Created November 3, 2014 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save finder39/a66cc6762a8029cea20e to your computer and use it in GitHub Desktop.
Save finder39/a66cc6762a8029cea20e to your computer and use it in GitHub Desktop.
println additions
func dprintln<T>(object: T, function: String = __FUNCTION__, file: String = __FILE__, line: Int = __LINE__, column: Int = __COLUMN__) {
println("<\(file.lastPathComponent):(\(line))> \(object)")
}
func dfprintln<T>(object: T, function: String = __FUNCTION__, file: String = __FILE__, line: Int = __LINE__, column: Int = __COLUMN__) {
println("<\(file.lastPathComponent):\(function):(\(line))> \(object)")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment