ATLUtils.cpp 682 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <ATLUtils.h>
  9. namespace Audio
  10. {
  11. #if !defined(AUDIO_RELEASE)
  12. bool AudioDebugDrawFilter(const AZStd::string_view objectName, const AZStd::string_view filter)
  13. {
  14. bool result = false;
  15. result = result || filter.empty();
  16. result = result || (filter.compare("0") == 0);
  17. result = result || (objectName.find(filter) != AZStd::string_view::npos);
  18. return result;
  19. }
  20. #endif // !AUDIO_RELEASE
  21. } // namespace Audio