#ifndef RESUMEF_INLINE_STATE | #ifndef RESUMEF_INLINE_STATE | ||||
#if defined(__clang__) || defined(_MSC_VER) | #if defined(__clang__) || defined(_MSC_VER) | ||||
/* #undef RESUMEF_INLINE_STATE */ | |||||
#define RESUMEF_INLINE_STATE 1 | |||||
#else | #else | ||||
/* #undef RESUMEF_INLINE_STATE */ | |||||
#define RESUMEF_INLINE_STATE 1 | |||||
#endif //defined(__clang__) || defined(_MSC_VER) | #endif //defined(__clang__) || defined(_MSC_VER) | ||||
#endif //RESUMEF_INLINE_STATE | #endif //RESUMEF_INLINE_STATE | ||||
#ifndef RESUMEF_ENABLE_CONCEPT | #ifndef RESUMEF_ENABLE_CONCEPT | ||||
#ifdef __cpp_lib_concepts | #ifdef __cpp_lib_concepts | ||||
/* #undef RESUMEF_ENABLE_CONCEPT */ | |||||
#define RESUMEF_ENABLE_CONCEPT 0 | |||||
#else | #else | ||||
/* #undef RESUMEF_ENABLE_CONCEPT */ | |||||
#define RESUMEF_ENABLE_CONCEPT 0 | |||||
#endif //#ifdef __cpp_lib_concepts | #endif //#ifdef __cpp_lib_concepts | ||||
#endif //#ifndef RESUMEF_ENABLE_CONCEPT | #endif //#ifndef RESUMEF_ENABLE_CONCEPT | ||||
#include "librf.h" | #include "librf.h" | ||||
using namespace resumef; | using namespace resumef; | ||||
#define GCC_FIX_BUGS 1 | |||||
#define GCC_FIX_BUGS 0 | |||||
static future_t<> gcc_bugs_if_await(event_t e) | static future_t<> gcc_bugs_if_await(event_t e) | ||||
{ | { |
<ClCompile Include="..\librf\src\timer.cpp" /> | <ClCompile Include="..\librf\src\timer.cpp" /> | ||||
<ClCompile Include="..\librf\src\when_v2.cpp" /> | <ClCompile Include="..\librf\src\when_v2.cpp" /> | ||||
<ClCompile Include="..\test_librf.cpp" /> | <ClCompile Include="..\test_librf.cpp" /> | ||||
<ClCompile Include="..\tutorial\gcc_bugs.cpp" /> | |||||
<ClCompile Include="..\tutorial\test_async_cb.cpp" /> | <ClCompile Include="..\tutorial\test_async_cb.cpp" /> | ||||
<ClCompile Include="..\tutorial\test_async_channel.cpp" /> | <ClCompile Include="..\tutorial\test_async_channel.cpp" /> | ||||
<ClCompile Include="..\tutorial\test_async_channel_mult_thread.cpp" /> | <ClCompile Include="..\tutorial\test_async_channel_mult_thread.cpp" /> |
<ClCompile Include="..\test_librf.cpp"> | <ClCompile Include="..\test_librf.cpp"> | ||||
<Filter>Source Files</Filter> | <Filter>Source Files</Filter> | ||||
</ClCompile> | </ClCompile> | ||||
<ClCompile Include="..\tutorial\gcc_bugs.cpp"> | |||||
<Filter>tutorial</Filter> | |||||
</ClCompile> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<ClInclude Include="..\librf\librf.h"> | <ClInclude Include="..\librf\librf.h"> |