From 4f8f96eb88d62bfda12d1d5751cb1c60dce94f8e Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> Date: Thu, 6 Jan 2022 13:08:09 -0800 Subject: [PATCH] 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 * clang format Co-authored-by: Anton Kolesnyk Co-authored-by: Ahson Khan --- .../inc/azure/core/azure_assert.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sdk/core/azure-core/inc/azure/core/azure_assert.hpp diff --git a/sdk/core/azure-core/inc/azure/core/azure_assert.hpp b/sdk/core/azure-core/inc/azure/core/azure_assert.hpp new file mode 100644 index 000000000..2b9ca56cf --- /dev/null +++ b/sdk/core/azure-core/inc/azure/core/azure_assert.hpp @@ -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()