Skip to content

Commit 63265b0

Browse files
committed
Remove inline specifier from compiler / OS support methods
Inlining is implicit by way of being constexpr.
1 parent d07cf83 commit 63265b0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

fly/fly.hpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ namespace fly {
6969
*
7070
* @return True if the operating system is Linux.
7171
*/
72-
inline constexpr bool is_linux()
72+
constexpr bool is_linux()
7373
{
7474
#if defined(FLY_LINUX)
7575
return true;
@@ -83,7 +83,7 @@ inline constexpr bool is_linux()
8383
*
8484
* @return True if the operating system is macOS.
8585
*/
86-
inline constexpr bool is_macos()
86+
constexpr bool is_macos()
8787
{
8888
#if defined(FLY_MACOS)
8989
return true;
@@ -97,7 +97,7 @@ inline constexpr bool is_macos()
9797
*
9898
* @return True if the operating system is Windows.
9999
*/
100-
inline constexpr bool is_windows()
100+
constexpr bool is_windows()
101101
{
102102
#if defined(FLY_WINDOWS)
103103
return true;
@@ -111,7 +111,7 @@ inline constexpr bool is_windows()
111111
*
112112
* @return True if the compiler is Clang.
113113
*/
114-
inline constexpr bool is_clang()
114+
constexpr bool is_clang()
115115
{
116116
#if defined(FLY_COMPILER_CLANG)
117117
return true;
@@ -125,7 +125,7 @@ inline constexpr bool is_clang()
125125
*
126126
* @return True if the compiler is GCC.
127127
*/
128-
inline constexpr bool is_gcc()
128+
constexpr bool is_gcc()
129129
{
130130
#if defined(FLY_COMPILER_GCC)
131131
return true;
@@ -139,7 +139,7 @@ inline constexpr bool is_gcc()
139139
*
140140
* @return True if the compiler is Clang.
141141
*/
142-
inline constexpr bool is_msvc()
142+
constexpr bool is_msvc()
143143
{
144144
#if defined(FLY_COMPILER_MSVC)
145145
return true;
@@ -153,7 +153,7 @@ inline constexpr bool is_msvc()
153153
*
154154
* @return True if the compiler supports consteval.
155155
*/
156-
inline constexpr bool supports_consteval()
156+
constexpr bool supports_consteval()
157157
{
158158
#if defined(FLY_COMPILER_SUPPORTS_CONSTEVAL)
159159
return true;
@@ -168,7 +168,7 @@ inline constexpr bool supports_consteval()
168168
*
169169
* @return True if the compiler supports floating point charconv operations.
170170
*/
171-
inline constexpr bool supports_floating_point_charconv()
171+
constexpr bool supports_floating_point_charconv()
172172
{
173173
#if defined(FLY_COMPILER_SUPPORTS_FP_CHARCONV)
174174
return true;

0 commit comments

Comments
 (0)