CryAssert.h 738 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. // Description : Assert dialog box
  9. #pragma once
  10. #include <AzCore/base.h>
  11. // Using AZ_Assert for all assert kinds (assert =, CRY_ASSERT, AZ_Assert).
  12. // see Trace::Assert for implementation
  13. #undef assert
  14. #define assert(condition) AZ_Assert(condition, "%s", #condition)
  15. #define CRY_ASSERT(condition) AZ_Assert(condition, "%s", #condition)
  16. #define CRY_ASSERT_MESSAGE(condition, message) AZ_Assert(condition, message)
  17. #define CRY_ASSERT_TRACE(condition, parenthese_message) AZ_Assert(condition, parenthese_message)