azure-sdk-for-cpp/sdk/appconfiguration/azure-data-appconfiguration/test/ut/macro_guard.cpp
Ahson Khan d46cdad67f
Add project skeleton and check-in snapshot of generated SDK for Azure App Configuration. (#6176)
* Add project skeleton and check-in snapshot of generated SDK for Azure App Configuration.

* Add new line at eof

* Add exclusion to the cspell issue.

* Explicitly use size_t instead of auto for iterating through a vector

* Add another cspell exclusion, since it is case-sensitive

* Address PR feedback, update CL, package version.

* Update readme to remove template project content.

* Exclude appconfig from recordings, since none exist atm.

* Temporarily exclude appconfiguration from docs generation.

* Add line/branch coverage thresholds and skip publishing docs if they don't exist.
2024-11-08 12:28:18 -08:00

16 lines
670 B
C++

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// Define `min` and `max` as function-like macros before including all public
// headers to ensure that uses of those identifiers are defended against
// expansion as function-like macros. Define `small` as an object-like macro to
// ensure that identifier isn't used at all. Windows.h is badly behaved and
// defines similar macros with these names and we want to ensure the SDK headers
// function even when a naive user includes Windows.h first.
//
#define small FAIL><TO][COMPILE)(VERY{{{LOUDLY!!!
#define max(x, y) small
#define min(x, y) small
#include <azure/data/appconfiguration.hpp>