-
-
Save adow/d2221d38e5dc65d4efa6 to your computer and use it in GitHub Desktop.
Revisions
-
xmzio revised this gist
Jun 14, 2014 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import Foundation } #else func dLog(message: String, filename: String = __FILE__, function: String = __FUNCTION__, line: Int = __LINE__) { } #endif func aLog(message: String, filename: String = __FILE__, function: String = __FUNCTION__, line: Int = __LINE__) { -
xmzio revised this gist
Jun 14, 2014 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,10 @@ import Foundation // dLog and aLog macros to abbreviate NSLog. // Use like this: // // dLog("Log this!") // #if DEBUG func dLog(message: String, filename: String = __FILE__, function: String = __FUNCTION__, line: Int = __LINE__) { NSLog("[\(filename.lastPathComponent):\(line)] \(function) - \(message)") -
xmzio created this gist
Jun 14, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ // // Macros.swift // // Created by Xavier Muñiz on 6/12/14. import Foundation // dLog and aLog macros to abbreviate NSLog. #if DEBUG func dLog(message: String, filename: String = __FILE__, function: String = __FUNCTION__, line: Int = __LINE__) { NSLog("[\(filename.lastPathComponent):\(line)] \(function) - \(message)") } #else func dLog(message: String, filename: String = __FILE__, function: String = __FUNCTION__, line: Int = __LINE__) { NSLog("[\(filename.lastPathComponent):\(line)] \(function) - \(message)") } #endif func aLog(message: String, filename: String = __FILE__, function: String = __FUNCTION__, line: Int = __LINE__) { NSLog("[\(filename.lastPathComponent):\(line)] \(function) - \(message)") }