-
Notifications
You must be signed in to change notification settings - Fork 14
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
1474009
commit 92aeaf4
Showing
3 changed files
with
38 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright 2024 The Jule Programming Language. | ||
// Use of this source code is governed by a BSD 3-Clause | ||
// license that can be found in the LICENSE file. | ||
|
||
#ifndef __JULE_IMPL_FLAG_HPP | ||
#define __JULE_IMPL_FLAG_HPP | ||
|
||
#if __cplusplus == 199711L | ||
#define __JULE_CPP98 | ||
#elif __cplusplus == 201103L | ||
#define __JULE_CPP11 | ||
#elif __cplusplus == 201402L | ||
#define __JULE_CPP14 | ||
#elif __cplusplus == 201703L | ||
#define __JULE_CPP17 | ||
#elif __cplusplus == 202002L | ||
#define __JULE_CPP20 | ||
#endif | ||
|
||
#if defined(__JULE_CPP20) | ||
#define __JULE_CONSTEXPR_SINCE_CPP20 constexpr | ||
#define __JULE_INLINE_BEFORE_CPP20 | ||
#else | ||
#define __JULE_CONSTEXPR_SINCE_CPP20 | ||
#define __JULE_INLINE_BEFORE_CPP20 inline | ||
#endif | ||
|
||
#endif // ifndef __JULE_IMPL_FLAG_HPP |
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