Last active
April 19, 2016 20:20
-
-
Save jessesquires/c012078a90d04c9f83eb to your computer and use it in GitHub Desktop.
PrettyPrint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public func print<T>(object: T, _ file: String = __FILE__, _ function: String = __FUNCTION__, _ line: Int = __LINE__) { | |
Swift.print("\(file.lastPathComponent.stringByDeletingPathExtension).\(function)[\(line)]: \(object)") | |
} |
Author
jessesquires
commented
Jun 28, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment