OtherGeneralMethod.swift 463 B

1234567891011121314151617181920
  1. //
  2. // OtherGeneralMethod.swift
  3. // HCQuanfangtong
  4. //
  5. // Created by Apple on 2021/12/24.
  6. // Copyright © 2021 Jyp. All rights reserved.
  7. //
  8. import Foundation
  9. //其他通用方法
  10. //MARK: debug模式下的打印
  11. func DLog<T>(_ message : T, file : String = #file, funcName : String = #function, lineNum : Int = #line) {
  12. #if DEBUG
  13. let fileName = (file as NSString).lastPathComponent
  14. print("\(fileName):(\(lineNum))-\(message)")
  15. #endif
  16. }