MLeaksFinder.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. /**
  2. * Tencent is pleased to support the open source community by making MLeaksFinder available.
  3. *
  4. * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
  5. *
  6. * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
  7. *
  8. * https://opensource.org/licenses/BSD-3-Clause
  9. *
  10. * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
  11. */
  12. #import "NSObject+MemoryLeak.h"
  13. //#define MEMORY_LEAKS_FINDER_ENABLED 0
  14. #ifdef MEMORY_LEAKS_FINDER_ENABLED
  15. #define _INTERNAL_MLF_ENABLED MEMORY_LEAKS_FINDER_ENABLED
  16. #else
  17. #define _INTERNAL_MLF_ENABLED DEBUG
  18. #endif
  19. #define MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED 0
  20. #ifdef MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED
  21. #define _INTERNAL_MLF_RC_ENABLED MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED
  22. #elif COCOAPODS
  23. #define _INTERNAL_MLF_RC_ENABLED COCOAPODS
  24. #endif