-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4c43aa
commit 934a5e6
Showing
2 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (C) 2005 - 2023 Settlers Freaks (sf-team at siedler25.org) | ||
// | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
#if __cplusplus >= 201703L | ||
# define RTTR_NODISCARD [[nodiscard]] | ||
#elif defined(__clang__) || defined(__GNUC__) | ||
# define RTTR_NODISCARD __attribute__((warn_unused_result)) | ||
#elif defined(_Check_return_) // MSVC requires /analyze switch | ||
# define RTTR_NODISCARD _Check_return_ | ||
#else | ||
# define RTTR_NODISCARD | ||
#endif |