Skip to content

Commit 50118d9

Browse files
author
Dmitry Tkachenko
committed
Add a REDISCPP_INLINE macros
1 parent f477e34 commit 50118d9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

include/redis-cpp/detail/config.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@
1414
#error "RedisCpp. Requires C++ 17 or higher."
1515
#endif
1616

17+
#ifdef REDISCPP_HEADER_ONLY
18+
# define REDISCPP_INLINE inline
19+
#elif
20+
# define REDISCPP_INLINE
21+
#endif // !REDISCPP_HEADER_ONLY
22+
1723
#endif // !REDISCPP_DETAIL_CONFIG_H_

include/redis-cpp/resp/deserialization.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ inline namespace resp
3030
namespace deserialization
3131
{
3232
[[nodiscard]]
33-
#ifdef REDISCPP_HEADER_ONLY
34-
inline
35-
#endif // !REDISCPP_HEADER_ONLY
33+
REDISCPP_INLINE
3634
auto get_mark(std::istream &stream)
3735
{
3836
switch (stream.get())

0 commit comments

Comments
 (0)