PDFViewer_Prefix.pch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // PDFViewer_Prefix.pch
  3. // PDFViewer
  4. //
  5. // Copyright © 2014-2022 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // The PDF Reader Sample applications are licensed with a modified BSD license.
  8. // Please see License for details. This notice may not be removed from this file.
  9. //
  10. #ifndef PDFViewer_Prefix_pch
  11. #define PDFViewer_Prefix_pch
  12. // Include any system framework and library headers here that should be included in all compilation units.
  13. // You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
  14. #ifdef __OBJC__
  15. #import <Foundation/Foundation.h>
  16. #import <UIKit/UIKit.h>
  17. #endif
  18. //
  19. // Workaround to remove NSLog and change some configs based on the kind of compilation
  20. // If __OPTIMIZE__ is defined (default definition by the compiler when in release mode)
  21. // we use the config for production otherwise, we use the config for development environment.
  22. //
  23. #define NSLOG_ENABLED
  24. #ifdef NSLOG_ENABLED
  25. #ifndef __OPTIMIZE__ // __OPTIMIZE__ is not enables, it means that the active config is Debug, so let NSLog enabled
  26. #define NSLog(...) NSLog(__VA_ARGS__)
  27. #else //__OPTIMIZE__ is defined, so disable NSLog
  28. #define NSLog(...) {}
  29. #endif // __OPTIMIZE__
  30. #else // NSLOG_ENABLED is not defined, so disable NSLog
  31. #define NSLog(...) {}
  32. #endif // NSLOG_ENABLED
  33. #endif /* PDFViewer_Prefix_pch */