Macro rename compatibility layer (#3186)

* Macro rename compatibility layer

* pragma once + doxy comment

* Update sdk/core/azure-core/inc/azure/core/azure_assert.hpp

Co-authored-by: Ahson Khan <ahkha@microsoft.com>

* clang format

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
This commit is contained in:
Anton Kolesnyk 2022-01-06 13:08:09 -08:00 committed by GitHub
parent ae3e5e021b
commit 4f8f96eb88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,19 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#pragma once
/**
* @file
* @brief Deprecated assert macros. It is only temporarily made available for compatibility and
* should NOT be used by any callers outside of the SDK.
*
*/
#include "azure/core/internal/azure_assert.hpp"
#define AZURE_ASSERT(exp) _azure_ASSERT(exp)
#define AZURE_ASSERT_MSG(exp, msg) _azure_ASSERT_MSG(exp, msg)
#define AZURE_ASSERT_FALSE(exp) _azure_ASSERT_FALSE(exp)
#define AZURE_UNREACHABLE_CODE() _azure_UNREACHABLE_CODE()
#define AZURE_NOT_IMPLEMENTED() _azure_NOT_IMPLEMENTED()