暂无描述

TBSDKLogUtil.h 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // '########'########::'######:'########:'##:::'##:
  2. // ... ##..::##.... ##'##... ##:##.... ##:##::'##::
  3. // ::: ##::::##:::: ##:##:::..::##:::: ##:##:'##:::
  4. // ::: ##::::########:. ######::##:::: ##:#####::::
  5. // ::: ##::::##.... ##:..... ##:##:::: ##:##. ##:::
  6. // ::: ##::::##:::: ##'##::: ##:##:::: ##:##:. ##::
  7. // ::: ##::::########:. ######::########::##::. ##:
  8. // :::..::::........:::......::........::..::::..::
  9. //
  10. // Created by 亿刀/禚来强 on 13-3-25.
  11. // Copyright (c) 2013年 yidao. All rights reserved.
  12. //
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #import <Foundation/Foundation.h>
  17. /** 开关openSDK的log */
  18. void openSDKSwitchLog(BOOL logCtr);
  19. /** 打印log */
  20. void openSDKNSLog(NSString *formate, ...);
  21. //#define MLog(formate, args...) NSLog(formate, args...)// openSDKNSLog(@"%s %d: " formate, __FUNCTION__, __LINE__, ##args)
  22. //#ifdef DEBUG_MODE
  23. #define MLog( s, ... ) openSDKNSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
  24. //#else
  25. //#define DLog( s, ... )
  26. //#endif
  27. #ifdef __cplusplus
  28. }
  29. #endif